public readonly struct Optional<T> : IEquatable<Optional<T>>
Public Structure Optional(Of T)
Implements IEquatable(Of Optional(Of T))[<SealedAttribute>]
type Optional<'T> =
struct
inherit ValueType
interface IEquatable<Optional<'T>>
end| Empty | Returns an OptionalT without a value. |
| HasValue | Gets a value indicating whether a value is present. |
| Value | Gets the value. |
| Equals(Object) | Indicates whether this instance and a specified object are equal. (Overrides ValueTypeEquals(Object)) |
| Equals(OptionalT) | Indicates whether the current object is equal to another object of the same type. |
| GetHashCode | Returns the hash code for this instance. (Overrides ValueTypeGetHashCode) |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| GetValueOrDefault | Gets the value if present, otherwise the default value. |
| GetValueOrDefault(T) | Gets the value if present, otherwise a default value. |
| GetValueOrDefaultTResult | Gets the value if present, otherwise the default value. |
| GetValueOrDefaultTResult(TResult) | Gets the value if present, otherwise a default value. |
| ToObject | Casts the value (if any) to an Object. |
| ToString | Returns the fully qualified type name of this instance. (Overrides ValueTypeToString) |
| Equality(OptionalT, OptionalT) | Compares two OptionalTs for equality. |
| (T to OptionalT) | Creates an OptionalT from an instance of the underlying value type. |
| Inequality(OptionalT, OptionalT) | Compares two OptionalTs for inequality. |