Enhanced C#
Language of your choice: library documentation
|
NoValue.Value
is meant to be used as the value of a property that has "no value", meaning no value is assigned or that the property is meaningless at the current time or in the current context.
More...
NoValue.Value
is meant to be used as the value of a property that has "no value", meaning no value is assigned or that the property is meaningless at the current time or in the current context.
Most often null
is used for this purpose; NoValue.Value
is used when null
is a considered to be a valid, meaningful value and you want to distinguish between "no value" and "null". For example, this is used by the the Loyc.Syntax.LNode.Value class, in which NoValue
has a different meaning than both null
and void
.
Also, this value converts implicitly to Maybe{T}.NoValue.
Public static fields | |
static readonly NoValue | Value = new NoValue() |
Public Member Functions | |
override string | ToString () |