Enhanced C#
Language of your choice: library documentation
Public static fields | Public Member Functions | List of all members
Loyc.NoValue Class Reference

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...


Source file:

Remarks

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 (or might be) a valid, meaningful value and you want to distinguish between "no value" and "null". For example, this can be returned by the Value property of Loyc.Syntax.ILNode, in which NoValue means "this is not a literal, so it can't have a value, not even null".

Also, this value converts implicitly to Maybe<T>.NoValue.

Public static fields

static readonly NoValue Value = new NoValue()
 

Public Member Functions

override string ToString ()