Deedle


opt<'T>

Namespace: Deedle

A type alias for the OptionalValue<T> type. The type alias can be used to make F# type definitions that use optional values directly more succinct.

Instance members

Instance memberDescription
x.HasValue
Signature: bool

Gets a value indicating whether the current OptionalValue<T> has a value

CompiledName: get_HasValue

x.Value
Signature: 'T

Returns the value stored in the current OptionalValue<T>. Exceptions: InvalidOperationException - Thrown when HasValue is false.

CompiledName: get_Value

x.ValueOrDefault
Signature: 'T

Returns the value stored in the current OptionalValue<T> or the default value of the type T when a value is not present.

CompiledName: get_ValueOrDefault

Static members

Static memberDescription
OptionalValue.Missing
Signature: OptionalValue<'T>

Returns a new instance of OptionalValue<T> that does not contain a value.

CompiledName: get_Missing

Fork me on GitHub