Skip to content

M_CSharpx_Either_GetRightOrDefault__2

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

Either.GetRightOrDefault(TLeft, TRight) Method

Returns a Either Right or a defualt value.

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

Syntax

C#

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

VB

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

C++

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

F#

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

Parameters

 

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

Type Parameters

 

TLeft
TRight

Return Value

Type: TRight

See Also

Reference

Either Class
CSharpx Namespace

Clone this wiki locally