Beispiel #1
0
 public RegHelper_Type(Type type)
 {
     function   = new RegHelper_TypeFunction(type);
     keyword    = type.Name;
     this.type  = type;
     this._type = type;
 }
Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #4
0
 public CQ_Type_String()
 {
     function = new RegHelper_TypeFunction(typeof(string));
 }