Skip to content

M_CodeJam_Option_SomeHasValue__1

Andrew Koryavchenko edited this page Jun 17, 2018 · 5 revisions

Option.SomeHasValue(T) Method (Nullable(T))

Creates instance of Option with specified value, if value has value.

Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

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()

Parameters

 

value
Type: System.Nullable(T)
Value

Type Parameters

 

T
Type of value

Return Value

Type: Option(T)
Instance of Option with value, if value has value, or instance without value.

See Also

Reference

Option Class
SomeHasValue Overload
CodeJam Namespace

Clone this wiki locally