Table of Contents

Class StandardEnumUserDataDescriptor

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

Constructors

StandardEnumUserDataDescriptor(Type, string, string[], object[], Type)

public StandardEnumUserDataDescriptor(Type enumType, string friendlyName = null, string[] names = null, object[] values = null, Type underlyingType = null)

Parameters

enumType Type
friendlyName string
names string[]
values object[]
underlyingType Type

Properties

IsFlags

public bool IsFlags { get; }

Property Value

bool

IsUnsigned

public bool IsUnsigned { get; }

Property Value

bool

UnderlyingType

public Type UnderlyingType { get; }

Property Value

Type

Methods

IsTypeCompatible(Type, object)

public override bool IsTypeCompatible(Type type, object obj)

Parameters

type Type
obj object

Returns

bool

MetaIndex(Script, object, string)

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

Parameters

script Script
obj object
metaname string

Returns

DynValue