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