Skip to content

M_CSharpx_Either_Return__1

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

Either.Return(TRight) Method

Inject a value into the Either type, returning Right case.

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

Syntax

C#

public static Either<string, TRight> Return<TRight>(
	TRight value
)

VB

Public Shared Function Return(Of TRight) ( 
	value As TRight
) As Either(Of String, TRight)

C++

public:
generic<typename TRight>
static Either<String^, TRight>^ Return(
	TRight value
)

F#

static member Return : 
        value : 'TRight -> Either<string, 'TRight> 

Parameters

 

value
Type: TRight

Type Parameters

 

TRight

Return Value

Type: Either(String, TRight)

See Also

Reference

Either Class
CSharpx Namespace

Clone this wiki locally