Skip to content

M_CSharpx_Either_GetLeftOrDefault__2

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

Either.GetLeftOrDefault(TLeft, TRight) Method

Returns a Either Left or a defualt value.

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

Syntax

C#

public static TLeft GetLeftOrDefault<TLeft, TRight>(
	Either<TLeft, TRight> either,
	TLeft default
)

VB

Public Shared Function GetLeftOrDefault(Of TLeft, TRight) ( 
	either As Either(Of TLeft, TRight),
	default As TLeft
) As TLeft

C++

public:
generic<typename TLeft, typename TRight>
static TLeft GetLeftOrDefault(
	Either<TLeft, TRight>^ either, 
	TLeft default
)

F#

static member GetLeftOrDefault : 
        either : Either<'TLeft, 'TRight> * 
        default : 'TLeft -> 'TLeft 

Parameters

 

either
Type: CSharpx.Either(TLeft, TRight)
default
Type: TLeft

Type Parameters

 

TLeft
TRight

Return Value

Type: TLeft

See Also

Reference

Either Class
CSharpx Namespace

Clone this wiki locally