Class EzrNothing
- Namespace
- EzrSquared.Runtime.Types.Core
- Assembly
- ezrSquared-lib.dll
The null-equivalent type.
public class EzrNothing : EzrObject, IEzrObject
- Inheritance
-
objectEzrNothing
- Implements
- Inherited Members
Constructors
EzrNothing(Context, Position, Position)
The null-equivalent type.
public EzrNothing(Context parentContext, Position startPosition, Position endPosition)
Parameters
parentContextContextThe parent context.
startPositionPositionThe starting position of the object.
endPositionPositionThe ending position of the object.
Properties
Tag
The tag of the type of this object, similar to C# namespace naming conventions.
public override string Tag { get; protected internal set; }
Property Value
- string
TypeName
The name of the type of this object, in plain text, all lowercase. Spaces are allowed.
public override string TypeName { get; protected internal set; }
Property Value
- string
Methods
ComparisonEqual(IEzrObject, RuntimeResult)
Compares the object to another, checks equality.
public override void ComparisonEqual(IEzrObject other, RuntimeResult result)
Parameters
otherIEzrObjectThe other object in the operation.
resultRuntimeResultRuntime result for carrying the result and any errors.
ComparisonNotEqual(IEzrObject, RuntimeResult)
Compares the object to another, checks unequality.
public override void ComparisonNotEqual(IEzrObject other, RuntimeResult result)
Parameters
otherIEzrObjectThe other object in the operation.
resultRuntimeResultRuntime result for carrying the result and any errors.
ComputeHashCode(RuntimeResult)
Evaluates the current object as its hash.
public override int ComputeHashCode(RuntimeResult result)
Parameters
resultRuntimeResultRuntime result for carrying any errors.
Returns
- int
The evaluated value.
EvaluateBoolean(RuntimeResult)
Evaluates the current object as a boolean value.
public override bool EvaluateBoolean(RuntimeResult result)
Parameters
resultRuntimeResultRuntime result for carrying any errors.
Returns
- bool
The evaluated value.
StrictEquals(IEzrObject, RuntimeResult)
Strictly compares the current object to another, taking into account inheritance.
public override bool StrictEquals(IEzrObject other, RuntimeResult result)
Parameters
otherIEzrObjectThe other object in the operation.
resultRuntimeResultRuntime result for carrying any errors.
Returns
- bool
ToString(RuntimeResult)
Evaluates the current object as a string value.
public override string ToString(RuntimeResult result)
Parameters
resultRuntimeResultRuntime result for carrying any errors.
Returns
- string
The evaluated value.