public TKTConstructorDesc SearchConstructor(TKTConstructorDesc bracket) { return(GclHelper.SearchConstructor(bracket, this.WordDict, this.ForType)); /* * TKTProcBracket bracket2= bracket; * if (WordDict != null && bracket.IsNameValue) * { * List<TKTProcArg> args = new List<TKTProcArg>(); * foreach (var arg in bracket.ListArgs) * { * string newArgName = WordDict.Get(arg.ArgName); * TKTProcArg newArg = new TKTProcArg(newArgName, arg.ArgType, arg.ArgType.IsGenericType); * args.Add(newArg); * } * bracket2 = new TKTProcBracket(args); * } * foreach(ConstructorInfo ci in ForType.GetConstructors()) * { * if(ci.IsPublic) * { * TKTConstructorDesc bracketCi = ProcDescHelper.CreateProcBracket(ci); * return bracketCi; * } * } * return null;*/ }
public TKTConstructorDesc SearchConstructor(TKTConstructorDesc desc) { return(GclHelper.SearchConstructor(desc, this.WordDict, this.ForType)); }