C# Класс Axiom.Scripting.ScriptEnumAttribute

Наследование: System.Attribute
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetLegalValues ( Type type ) : string

Returns a string describing the legal values for a particular enum.

GetScriptAttribute ( int enumValue, Type type ) : string

Looks up the script attibute for the enumeration value

Lookup ( string val, Type type ) : object

Returns an actual enum value for a enum that can be used in script files.

ScriptEnumAttribute ( string val ) : System

Описание методов

GetLegalValues() публичный статический метод

Returns a string describing the legal values for a particular enum.
public static GetLegalValues ( Type type ) : string
type System.Type
Результат string

GetScriptAttribute() публичный статический метод

Looks up the script attibute for the enumeration value
public static GetScriptAttribute ( int enumValue, Type type ) : string
enumValue int The enumeration value
type System.Type The Enumeration
Результат string

Lookup() публичный статический метод

Returns an actual enum value for a enum that can be used in script files.
public static Lookup ( string val, Type type ) : object
val string
type System.Type
Результат object

ScriptEnumAttribute() публичный метод

public ScriptEnumAttribute ( string val ) : System
val string The value as it will appear when used in script files (.material, .overlay, etc).
Результат System