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