Skip to content

M_CSharpx_MaybeExtensions_SelectMany__3

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

MaybeExtensions.SelectMany(TSource, TValue, TResult) Method

Bind operation compatible with Linq.

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

Syntax

C#

public static Maybe<TResult> SelectMany<TSource, TValue, TResult>(
	this Maybe<TSource> maybe,
	Func<TSource, Maybe<TValue>> valueSelector,
	Func<TSource, TValue, TResult> resultSelector
)

VB

<ExtensionAttribute>
Public Shared Function SelectMany(Of TSource, TValue, TResult) ( 
	maybe As Maybe(Of TSource),
	valueSelector As Func(Of TSource, Maybe(Of TValue)),
	resultSelector As Func(Of TSource, TValue, TResult)
) As Maybe(Of TResult)

C++

public:
[ExtensionAttribute]
generic<typename TSource, typename TValue, typename TResult>
static Maybe<TResult>^ SelectMany(
	Maybe<TSource>^ maybe, 
	Func<TSource, Maybe<TValue>^>^ valueSelector, 
	Func<TSource, TValue, TResult>^ resultSelector
)

F#

[<ExtensionAttribute>]
static member SelectMany : 
        maybe : Maybe<'TSource> * 
        valueSelector : Func<'TSource, Maybe<'TValue>> * 
        resultSelector : Func<'TSource, 'TValue, 'TResult> -> Maybe<'TResult> 

Parameters

 

maybe
Type: CSharpx.Maybe(TSource)
valueSelector
Type: System.Func(TSource, Maybe(TValue))
resultSelector
Type: System.Func(TSource, TValue, TResult)

Type Parameters

 

TSource
TValue
TResult

Return Value

Type: Maybe(TResult)

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Maybe(TSource). 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

MaybeExtensions Class
CSharpx Namespace

Clone this wiki locally
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy