Class EzrTypeWrapper
- Namespace
- EzrSquared.Runtime.Types.Wrappers
- Assembly
- ezrSquared-lib.dll
Class to automatically wrap C# types so that they can be used in ezr².
public class EzrTypeWrapper : EzrWrapper<Type>, IEzrObject- Inheritance
- 
      objectEzrWrapper<Type>EzrTypeWrapper
- Implements
- Inherited Members
Constructors
EzrTypeWrapper(Type, Context, Position, Position)
Creates a new EzrTypeWrapper.
public EzrTypeWrapper(Type sharpType, Context parentContext, Position startPosition, Position endPosition)Parameters
- sharpTypeType
- The type to wrap. 
- parentContextContext
- The context in which this object was created. 
- startPositionPosition
- The starting position of the object. 
- endPositionPosition
- The ending position of the object. 
Fields
PrimaryConstructor
The primary wrapped constructor for the type. May be null.
public readonly EzrConstructorWrapper? PrimaryConstructorField Value
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
Execute(Reference[], Interpreter, RuntimeResult)
Executes the current object, like a function.
public override void Execute(Reference[] arguments, Interpreter interpreter, RuntimeResult result)Parameters
- argumentsReference[]
- The arguments of the execution. 
- interpreterInterpreter
- The interpreter to be used in execution. 
- resultRuntimeResult
- Runtime result for carrying the result and any errors. 
ToString(RuntimeResult)
Evaluates the current object as a string value.
public override string ToString(RuntimeResult result)Parameters
- resultRuntimeResult
- Runtime result for carrying any errors. 
Returns
- string
- The evaluated value. 
Update(Context, Position, Position)
Updates the context and position of the object.
public void Update(Context context, Position startPosition, Position endPosition)