-
Notifications
You must be signed in to change notification settings - Fork 35
T_CodeJam_ValueOption
andrewvk edited this page Jul 1, 2016
·
5 revisions
Methods to work with ValueOption
System.Object
CodeJam.ValueOption
Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 1.1.0.0 (1.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. |