Skip to content

M_CSharpx_Either_GetLeft__2

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

Either.GetLeft(TLeft, TRight) Method

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

Syntax

C#

private static TLeft GetLeft<TLeft, TRight>(
	this Either<TLeft, TRight> either
)

VB

<ExtensionAttribute>
Private Shared Function GetLeft(Of TLeft, TRight) ( 
	either As Either(Of TLeft, TRight)
) As TLeft

C++

private:
[ExtensionAttribute]
generic<typename TLeft, typename TRight>
static TLeft GetLeft(
	Either<TLeft, TRight>^ either
)

F#

[<ExtensionAttribute>]
private static member GetLeft : 
        either : Either<'TLeft, 'TRight> -> 'TLeft 

Parameters

 

either
Type: CSharpx.Either(TLeft, TRight)

Type Parameters

 

TLeft
TRight

Return Value

Type: TLeft

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Either(TLeft, TRight). When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also

Reference

Either Class
CSharpx Namespace

Clone this wiki locally