Click or drag to resize
OptionalValueT Properties

The OptionalValueT generic type exposes the following members.

Properties
  NameDescription
Public propertyHasValue
Gets a value indicating whether the current `OptionalValue<T>` has a value
Public propertyStatic memberMissing
Returns a new instance of `OptionalValue<T>` that does not contain a value.
Public propertyValue
Returns the value stored in the current `OptionalValue<T>`. Exceptions: `InvalidOperationException` - Thrown when `HasValue` is `false`.
Public propertyValueOrDefault
Returns the value stored in the current `OptionalValue<T>` or the default value of the type `T` when a value is not present.
Top
See Also