OptionalValueT Methods |
The OptionalValueT generic type exposes the following members.
Name | Description | |
---|---|---|
Equals |
Support structural equality
(Overrides ValueTypeEquals(Object).) | |
GetHashCode |
Support structural equality
(Overrides ValueTypeGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToString |
Prints the value or "<null>" when the value is present, but is `null`
or "<missing>" when the value is not present (`HasValue = false`).
(Overrides ValueTypeToString.) |
Name | Description | |
---|---|---|
AsNullableT |
Extension method that converts optional value containing a value type
to a C# friendly `Nullable<T>` or `T?` type.
(Defined by OptionalValueExtensions.) | |
OrDefaultT |
Extension method that returns value in the specified optional value
or the provided default value (the second argument).
(Defined by OptionalValueExtensions.) |