Table of Contents

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
object
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 object

The object to wrap.

instanceType Type

The C# object's type.

parentContext Context

The context in which this object was created.

startPosition Position

The starting position of the object.

endPosition Position

The 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 RuntimeResult

Runtime result for carrying any errors.

Returns

string

The evaluated value.