Table of Contents

Class CompositeUserDataDescriptor

Namespace
MoonSharp.Interpreter.Interop
Assembly
Assembly-CSharp.dll
public class CompositeUserDataDescriptor : IUserDataDescriptor
Inheritance
CompositeUserDataDescriptor
Implements
Inherited Members
Extension Methods

Constructors

CompositeUserDataDescriptor(List<IUserDataDescriptor>, Type)

public CompositeUserDataDescriptor(List<IUserDataDescriptor> descriptors, Type type)

Parameters

descriptors List<IUserDataDescriptor>
type Type

Properties

Descriptors

public IList<IUserDataDescriptor> Descriptors { get; }

Property Value

IList<IUserDataDescriptor>

Name

public string Name { get; }

Property Value

string

Type

public Type Type { get; }

Property Value

Type

Methods

AsString(object)

public string AsString(object obj)

Parameters

obj object

Returns

string

Index(Script, object, DynValue, bool)

public DynValue Index(Script script, object obj, DynValue index, bool isNameIndex)

Parameters

script Script
obj object
index DynValue
isNameIndex bool

Returns

DynValue

IsTypeCompatible(Type, object)

public bool IsTypeCompatible(Type type, object obj)

Parameters

type Type
obj object

Returns

bool

MetaIndex(Script, object, string)

public DynValue MetaIndex(Script script, object obj, string metaname)

Parameters

script Script
obj object
metaname string

Returns

DynValue

SetIndex(Script, object, DynValue, DynValue, bool)

public bool SetIndex(Script script, object obj, DynValue index, DynValue value, bool isNameIndex)

Parameters

script Script
obj object
index DynValue
value DynValue
isNameIndex bool

Returns

bool