Skip to content

M_CSharpx_Either_Fail__1

Moh.Hassan edited this page Oct 10, 2019 · 1 revision

Either.Fail(TRight) Method

Fail with a message. Not part of mathematical definition of a monad.

Namespace:CSharpx
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0

Syntax

C#

publicstaticEither<string,TRight>Fail<TRight>(stringmessage)

VB

PublicSharedFunctionFail(OfTRight)(messageAsString)AsEither(OfString,TRight)

C++

public: generic<typename TRight> static Either<String^, TRight>^ Fail( String^ message )

F#

static memberFail:message :string ->Either<string,'TRight>

Parameters

message
Type: System.String

Type Parameters

TRight

Return Value

Type: Either(String, TRight)

See Also

Reference

Either Class
CSharpx Namespace

Clone this wiki locally