Struct KnownSymbols.Option<T>
Defines a true optional type that supports Some(null) representations.
protected readonly struct KnownSymbols.Option<T>
Type Parameters
TThe optional value contained.
- Inherited Members
Constructors
Option(T)
Defines a true optional type that supports Some(null) representations.
public Option(T value)
Parameters
valueT
Properties
HasValue
Indicates whether the option has a value, or default otherwise.
public bool HasValue { get; }
Property Value
Value
The value of the option.
public T Value { get; }
Property Value
- T