Class NullExpression

Namespace
Cratis.Chronicle.Projections.Engine.Expressions
Assembly
Cratis.Chronicle.dll

Represents a IEventValueExpression for clearing a member back to no value.

public class NullExpression : IEventValueExpression
Inheritance
NullExpression
Implements
Inherited Members
Extension Methods

Remarks

A clear is its own expression rather than a ValueExpression carrying the text of the keyword. The kernel captures a constant's operand as text, so routing a clear through $value(...) wrote those literal four characters into the member instead of clearing it.

Constructors

NullExpression()

public NullExpression()

Fields

Instance

Gets the single NullExpression instance - it carries no state.

public static readonly NullExpression Instance

Field Value

NullExpression

Methods

Build()

Builds the expression.

public PropertyExpression Build()

Returns

PropertyExpression

The expression built.