Scorpio.Userdata.UserdataType.GetValue C# (CSharp) Method

GetValue() public abstract method

获得一个类变量
public abstract GetValue ( object obj, string name ) : object
obj object
name string
return object
        public abstract object GetValue(object obj, string name);
        /// <summary> 设置一个类变量 </summary>

Usage Example

Example #1
0
 public override ScriptObject GetValue(object key)
 {
     if (!(key is string))
     {
         throw new ExecutionException(Script, "ObjectType GetValue只支持String类型");
     }
     return(Script.CreateObject(m_UserdataType.GetValue(null, (string)key)));
 }
All Usage Examples Of Scorpio.Userdata.UserdataType::GetValue