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#

public static Either<string, TRight> Fail<TRight>(
	string message
)

VB

Public Shared Function Fail(Of TRight) ( 
	message As String
) As Either(Of String, TRight)

C++

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

F#

static member Fail : 
        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