-
Notifications
You must be signed in to change notification settings - Fork 35
T_CodeJam_ValueOption
Andrew Koryavchenko edited this page Jun 17, 2018
·
5 revisions
Methods to work with ValueOption
System.Object
CodeJam.ValueOption
Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0
C#
public static class ValueOption
VB
<ExtensionAttribute>
Public NotInheritable Class ValueOption
F#
[<AbstractClassAttribute>]
[<SealedAttribute>]
[<ExtensionAttribute>]
type ValueOption = class end
The ValueOption type exposes the following members.
Name | Description | |
---|---|---|
None(T) | Creates instance of ValueOption without value. | |
Some(T) | Creates instance of ValueOption with specified value. | |
SomeHasValue(T)(Nullable(T)) | Creates instance of ValueOption with specified value, if value has value. | |
SomeHasValue(T)(T) | Creates instance of ValueOption with specified value, if value not null. | |
With(T, TResult)(ValueOption(T), Func(T, TResult)) | Converts option value to another option with selectFunc. | |
With(T, TResult)(ValueOption(T), Func(T, TResult), Func(TResult)) | Converts option value to another option with selectFunc. | |
With(T, TResult)(ValueOption(T), Func(T, TResult), TResult) | Converts option value to another option with selectFunc. |