Skip to content

M_CSharpx_MaybeExtensions_Do__1

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

MaybeExtensions.Do(T) Method (Maybe(T), Action(T))

If contans a value executes an Action(T) delegate over it.

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

Syntax

C#

public static void Do<T>(
	this Maybe<T> maybe,
	Action<T> action
)

VB

<ExtensionAttribute>
Public Shared Sub Do(Of T) ( 
	maybe As Maybe(Of T),
	action As Action(Of T)
)

C++

public:
[ExtensionAttribute]
generic<typename T>
static void Do(
	Maybe<T>^ maybe, 
	Action<T>^ action
)

F#

[<ExtensionAttribute>]
static member Do : 
        maybe : Maybe<'T> * 
        action : Action<'T> -> unit 

Parameters

 

maybe
Type: CSharpx.Maybe(T)
action
Type: System.Action(T)

Type Parameters

 

T

Usage Note

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