Struct Option<T>
Allows tracking of whether a value has be initialized (even with the default value) for both
reference and value types.
Useful where distinguishing between null (or zero, or false) and uninitialized is significant.
Assembly: Akka.Streams.dll
Syntax
Type Parameters
Constructors
|
Improve this Doc
View Source
Option(T)
Declaration
Parameters
Type |
Name |
Description |
T |
value |
TBD
|
Fields
|
Improve this Doc
View Source
None
Declaration
public static readonly Option<T> None
Field Value
Properties
|
Improve this Doc
View Source
HasValue
Declaration
public bool HasValue { get; }
Property Value
|
Improve this Doc
View Source
Value
Declaration
Property Value
Methods
|
Improve this Doc
View Source
Equals(Option<T>)
Declaration
public bool Equals(Option<T> other)
Parameters
Type |
Name |
Description |
Option<T> |
other |
|
Returns
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Operators
|
Improve this Doc
View Source
Implicit(T to Option<T>)
Performs an implicit conversion from T
to Option<T>.
Declaration
public static implicit operator Option<T>(T value)
Parameters
Type |
Name |
Description |
T |
value |
The object to convert
|
Returns
Type |
Description |
Option<T> |
The result of the conversion.
|
Extension Methods