Skip to content

M_CSharpx_EitherExtensions_IsLeft__2

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

EitherExtensions.IsLeft(TLeft, TRight) Method

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

Syntax

C#

publicstaticboolIsLeft<TLeft,TRight>(thisEither<TLeft,TRight>either)

VB

<ExtensionAttribute>PublicSharedFunctionIsLeft(OfTLeft,TRight)(eitherAsEither(OfTLeft,TRight))AsBoolean

C++

public: [ExtensionAttribute] generic<typename TLeft, typename TRight> staticboolIsLeft( Either<TLeft, TRight>^ either )

F#

[<ExtensionAttribute>]static memberIsLeft:either :Either<'TLeft,'TRight>->bool 

Parameters

either
Type: CSharpx.Either(TLeft, TRight)

Type Parameters

TLeft
TRight

Return Value

Type: Boolean

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

EitherExtensions Class
CSharpx Namespace

Clone this wiki locally