ToNullable
Creates a nullable value from an Option
one.
Parameters | Returns |
Option<T> option | T? |
Usage
It is created a nullable T?
value from an Option<T>
.
When the Option
IsSome
the nullable value will be receive the encapsulated value, otherwise, the nullable value will be null
.
When the option value IsSome
When the option value IsNone
Last updated