Skip to content

M_CSharpx_Either_GetOrFail__2

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

Either.GetOrFail(TLeft, TRight) Method

Returns a Either Right or fail with an exception.

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

Syntax

C#

public static TRight GetOrFail<TLeft, TRight>(
	Either<TLeft, TRight> either
)

VB

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

C++

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

F#

static member GetOrFail : 
        either : Either<'TLeft, 'TRight> -> 'TRight 

Parameters

 

either
Type: CSharpx.Either(TLeft, TRight)

Type Parameters

 

TLeft
TRight

Return Value

Type: TRight

See Also

Reference

Either Class
CSharpx Namespace

Clone this wiki locally