Skip to content

M_CSharpx_Either_OfMaybe__2

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

Either.OfMaybe(TLeft, TRight) Method

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

Syntax

C#

public static Either<TLeft, TRight> OfMaybe<TLeft, TRight>(
	Maybe<TRight> maybe,
	TLeft left
)

VB

Public Shared Function OfMaybe(Of TLeft, TRight) ( 
	maybe As Maybe(Of TRight),
	left As TLeft
) As Either(Of TLeft, TRight)

C++

public:
generic<typename TLeft, typename TRight>
static Either<TLeft, TRight>^ OfMaybe(
	Maybe<TRight>^ maybe, 
	TLeft left
)

F#

static member OfMaybe : 
        maybe : Maybe<'TRight> * 
        left : 'TLeft -> Either<'TLeft, 'TRight> 

Parameters

 

maybe
Type: CSharpx.Maybe(TRight)
left
Type: TLeft

Type Parameters

 

TLeft
TRight

Return Value

Type: Either(TLeft, TRight)

See Also

Reference

Either Class
CSharpx Namespace

Clone this wiki locally