![]() | OptionalValueT Properties |
The OptionalValueT generic type exposes the following members.
Name | Description | |
---|---|---|
![]() | HasValue |
Gets a value indicating whether the current `OptionalValue<T>` has a value
|
![]() ![]() | Missing |
Returns a new instance of `OptionalValue<T>` that does not contain a value.
|
![]() | Value |
Returns the value stored in the current `OptionalValue<T>`.
Exceptions:
`InvalidOperationException` - Thrown when `HasValue` is `false`.
|
![]() | ValueOrDefault |
Returns the value stored in the current `OptionalValue<T>` or
the default value of the type `T` when a value is not present.
|