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 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 ()