Nullable value types can hold either a value or
Nothing
.
The value stored in the nullable type can be accessed with the Value
property or by casting it to the underlying type. Still, both
operations throw an InvalidOperationException
when the value is Nothing
. A nullable type should always be tested before
accessing the value to avoid raising exceptions.