C# Class Scorpio.Userdata.UserdataType

保存一个类的所有元素
Mostrar archivo Open project: qingfeng346/Scorpio-CSharp Class Usage Examples

Protected Properties

Property Type Description
m_Script Script
m_Type Type

Public Methods

Method Description
AddExtensionMethod ( MethodInfo method ) : void
CreateInstance ( ScriptObject parameters ) : object

创建一个实例

GetComputeMethod ( TokenType type ) : ScorpioMethod

获得运算符重载的函数

GetValue ( object obj, string name ) : object

获得一个类变量

MakeGenericType ( Type parameters ) : ScriptUserdata

初始化泛型类

SetValue ( object obj, string name, ScriptObject value ) : void

设置一个类变量

UserdataType ( Script script, Type type ) : System

Method Details

AddExtensionMethod() public abstract method

public abstract AddExtensionMethod ( MethodInfo method ) : void
method System.Reflection.MethodInfo
return void

CreateInstance() public abstract method

创建一个实例
public abstract CreateInstance ( ScriptObject parameters ) : object
parameters Scorpio.ScriptObject
return object

GetComputeMethod() public abstract method

获得运算符重载的函数
public abstract GetComputeMethod ( TokenType type ) : ScorpioMethod
type TokenType
return Scorpio.Variable.ScorpioMethod

GetValue() public abstract method

获得一个类变量
public abstract GetValue ( object obj, string name ) : object
obj object
name string
return object

MakeGenericType() public method

初始化泛型类
public MakeGenericType ( Type parameters ) : ScriptUserdata
parameters System.Type
return Scorpio.ScriptUserdata

SetValue() public abstract method

设置一个类变量
public abstract SetValue ( object obj, string name, ScriptObject value ) : void
obj object
name string
value Scorpio.ScriptObject
return void

UserdataType() public method

public UserdataType ( Script script, Type type ) : System
script Script
type System.Type
return System

Property Details

m_Script protected_oe property

protected Script m_Script
return Script

m_Type protected_oe property

protected Type m_Type
return Type