Deedle


OptionalValueExtensions

Namespace: Deedle
Attributes:
[<Extension>]

Extension methods for working with optional values from C#. These make it easier to provide default values and convert optional values to Nullable (when the contained value is value type)

Static members

Static memberDescription
OptionalValueExtensions.AsNullable(opt)
Signature: opt:OptionalValue<'T> -> Nullable<'T>
Type parameters: 'T Attributes:
[<Extension>]

Extension method that converts optional value containing a value type to a C# friendly Nullable<T> or T? type.

OptionalValueExtensions.OrDefault(...)
Signature: (opt:OptionalValue<'T> * defaultValue:'T) -> 'T
Type parameters: 'T Attributes:
[<Extension>]

Extension method that returns value in the specified optional value or the provided default value (the second argument).

Fork me on GitHub