-
Notifications
You must be signed in to change notification settings - Fork 35
M_CodeJam_Option_SomeHasValue__1
Andrew Koryavchenko edited this page Jun 17, 2018
·
5 revisions
Creates instance of Option with specified value, if value has value.
Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0
C#
public static Option<T> SomeHasValue<T>(
Nullable<T> value
)
where T : struct, new()
VB
Public Shared Function SomeHasValue(Of T As {Structure, New}) (
value As Nullable(Of T)
) As Option(Of T)
F#
static member SomeHasValue :
value : Nullable<'T> -> Option<'T> when 'T : struct, new()
- value
- Type: System.Nullable(T)
Value
- T
- Type of value
Type: Option(T)
Instance of Option with value, if value has value, or instance without value.