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
instance
objectThe object to wrap.
instanceType
TypeThe C# object's type.
parentContext
ContextThe context in which this object was created.
startPosition
PositionThe starting position of the object.
endPosition
PositionThe 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
result
RuntimeResultRuntime result for carrying any errors.
Returns
- string
The evaluated value.