示例#1
0
 public WoopsaMethod(WoopsaObject container, string name, WoopsaValueType returnType, IEnumerable <WoopsaMethodArgumentInfo> argumentInfos, WoopsaMethodInvoke methodInvoke)
     : base(container, name)
 {
     ReturnType    = returnType;
     ArgumentInfos = argumentInfos;
     _methodInvoke = methodInvoke;
     if (container != null)
     {
         container.Add(this);
     }
 }
示例#2
0
 public WoopsaProperty(WoopsaObject container, string name, WoopsaValueType type, WoopsaPropertyGet get, WoopsaPropertySet set)
     : base(container, name)
 {
     Type       = type;
     _get       = get;
     IsReadOnly = set == null;
     if (!IsReadOnly)
     {
         _set = set;
     }
     if (container != null)
     {
         container.Add(this);
     }
 }