Esempio n. 1
0
 public RegHelper_Type(Type type)
 {
     function   = new RegHelper_TypeFunction(type);
     keyword    = type.Name;
     this.type  = type;
     this._type = type;
 }
Esempio n. 2
0
 protected RegHelper_Type(Type type, string setkeyword, bool dele)
 {
     function = new RegHelper_TypeFunction(type);
     if (setkeyword != null)
     {
         keyword = setkeyword.Replace(" ", "");
     }
     else
     {
         keyword = type.Name;
     }
     this.type  = type;
     this._type = type;
 }
Esempio n. 3
0
 public RegHelper_Type(Type type, string setkeyword)
 {
     if (type.IsSubclassOf(typeof(Delegate)))
     {
         throw new Exception("你想注册的Type是一个Delegate,需要用特别的注册方法");
     }
     function = new RegHelper_TypeFunction(type);
     if (setkeyword != null)
     {
         keyword = setkeyword.Replace(" ", "");
     }
     else
     {
         keyword = type.Name;
     }
     this.type  = type;
     this._type = type;
 }
Esempio n. 4
0
 public CQ_Type_String()
 {
     function = new RegHelper_TypeFunction(typeof(string));
 }