FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

M_CSharpx_MaybeExtensions_Bind__2 · commandlineparser/commandline Wiki · GitHub

M_CSharpx_MaybeExtensions_Bind__2 · commandlineparser/commandline Wiki · GitHub
Skip to content

Navigation Menu

M_CSharpx_MaybeExtensions_Bind__2

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

MaybeExtensions.Bind(T1, T2) Method

Invokes a function on this maybe value that itself yields a maybe.

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

Syntax

C#

public static Maybe<T2> Bind<T1, T2>(
	this Maybe<T1> maybe,
	Func<T1, Maybe<T2>> func
)

VB

<ExtensionAttribute>
Public Shared Function Bind(Of T1, T2) ( 
	maybe As Maybe(Of T1),
	func As Func(Of T1, Maybe(Of T2))
) As Maybe(Of T2)

C++

public:
[ExtensionAttribute]
generic<typename T1, typename T2>
static Maybe<T2>^ Bind(
	Maybe<T1>^ maybe, 
	Func<T1, Maybe<T2>^>^ func
)

F#

[<ExtensionAttribute>]
static member Bind : 
        maybe : Maybe<'T1> * 
        func : Func<'T1, Maybe<'T2>> -> Maybe<'T2> 

Parameters

 

maybe
Type: CSharpx.Maybe(T1)
func
Type: System.Func(T1, Maybe(T2))

Type Parameters

 

T1
T2

Return Value

Type: Maybe(T2)

Usage Note

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

Wiki pages Pages 1,025

Clone this wiki locally

Footer

© 2026 GitHub, Inc.

Back | FazBrowse Home | New Git URL