OfNullable
Creates an Option
value from a Nullable
one.
Parameters
Returns
T? nullableValue
Option<T>
WARNING
This method isn't available as an extension method.
Usage
It is create a Option<T>.Some
or a Option<T>.None
value according to the nullable value.
An Option<T>.None
is created when the nullable value contains a null
or default
value.
When nullable value is null
When a nullable value isn't null
Last updated
Was this helpful?