Table of Contents

Class StandardGenericsUserDataDescriptor

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

Constructors

StandardGenericsUserDataDescriptor(Type, InteropAccessMode)

public StandardGenericsUserDataDescriptor(Type type, InteropAccessMode accessMode)

Parameters

type Type
accessMode InteropAccessMode

Properties

AccessMode

public InteropAccessMode AccessMode { get; }

Property Value

InteropAccessMode

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

Generate(Type)

public IUserDataDescriptor Generate(Type type)

Parameters

type Type

Returns

IUserDataDescriptor

Index(Script, object, DynValue, bool)

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

Parameters

script Script
obj object
index DynValue
isDirectIndexing 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 isDirectIndexing)

Parameters

script Script
obj object
index DynValue
value DynValue
isDirectIndexing bool

Returns

bool