Deedle


OptionalValueExtensions

Namespace: Deedle

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
AsNullable(opt)
Signature: opt:OptionalValue<'T> -> Nullable<'T>
Type parameters: 'T

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

OrDefault(opt, defaultValue)
Signature: (opt:OptionalValue<'T> * defaultValue:'T) -> 'T
Type parameters: 'T

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

Fork me on GitHub