| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Provides pattern matching using Action delegates.
Namespace: CSharpx
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0
C#
public static void Match<T>(
this Maybe<T> maybe,
Action<T> ifJust,
Action ifNothing
)VB
<ExtensionAttribute>
Public Shared Sub Match(Of T) (
maybe As Maybe(Of T),
ifJust As Action(Of T),
ifNothing As Action
)C++
public:
[ExtensionAttribute]
generic<typename T>
static void Match(
Maybe<T>^ maybe,
Action<T>^ ifJust,
Action^ ifNothing
)F#
[<ExtensionAttribute>]
static member Match :
maybe : Maybe<'T> *
ifJust : Action<'T> *
ifNothing : Action -> unit
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).
CommandLineParser Class Library V2.6
| Back | FazBrowse Home | New Git URL |