Logo Deedle

'T opt Type

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 member Description

this.HasValue

Full Usage: this.HasValue

Returns: bool

Gets a value indicating whether the current `OptionalValue` has a value

Returns: bool

this.Value

Full Usage: this.Value

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

this.ValueOrDefault

Full Usage: this.ValueOrDefault

Returns: 'T

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

Returns: 'T

Static members

Static member Description

OptionalValue.Missing

Full Usage: OptionalValue.Missing

Returns: OptionalValue<'T>

Returns a new instance of `OptionalValue` that does not contain a value.

Returns: OptionalValue<'T>

Type something to start searching.