Class EzrObjectWrapper
- Namespace
- EzrSquared.Runtime.Types.Wrappers
- Assembly
- ezrSquared-lib.dll
Class to automatically wrap instances of C# types so that they can be used in ezr².
public class EzrObjectWrapper : EzrWrapper<Type>, IEzrObject
- Inheritance
-
objectEzrWrapper<Type>EzrObjectWrapper
- Implements
- Inherited Members
Constructors
EzrObjectWrapper(object, Type, Context, Position, Position)
Creates a new EzrObjectWrapper.
public EzrObjectWrapper(object instance, Type instanceType, Context parentContext, Position startPosition, Position endPosition)
Parameters
instanceobjectThe object to wrap.
instanceTypeTypeThe C# object's type.
parentContextContextThe context in which this object was created.
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
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.