Skip to content

M_CSharpx_Either_SelectMany__3

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

Either.SelectMany(TLeft, TRight, TResult) Method

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

Syntax

C#

public static Either<TLeft, TResult> SelectMany<TLeft, TRight, TResult>(
	this Either<TLeft, TRight> result,
	Func<TRight, Either<TLeft, TResult>> func
)

VB

<ExtensionAttribute>
Public Shared Function SelectMany(Of TLeft, TRight, TResult) ( 
	result As Either(Of TLeft, TRight),
	func As Func(Of TRight, Either(Of TLeft, TResult))
) As Either(Of TLeft, TResult)

C++

public:
[ExtensionAttribute]
generic<typename TLeft, typename TRight, typename TResult>
static Either<TLeft, TResult>^ SelectMany(
	Either<TLeft, TRight>^ result, 
	Func<TRight, Either<TLeft, TResult>^>^ func
)

F#

[<ExtensionAttribute>]
static member SelectMany : 
        result : Either<'TLeft, 'TRight> * 
        func : Func<'TRight, Either<'TLeft, 'TResult>> -> Either<'TLeft, 'TResult> 

Parameters

 

result
Type: CSharpx.Either(TLeft, TRight)
func
Type: System.Func(TRight, Either(TLeft, TResult))

Type Parameters

 

TLeft
TRight
TResult

Return Value

Type: Either(TLeft, TResult)

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