public static SmallType RegisterType(string pNamespace, string pName, bool pIsValueType, IList <string> pTypeHints) { List <SmallType> types = new List <SmallType>(); foreach (var t in pTypeHints) { types.Add(CreateGenericParameter(t)); } var st = new SmallType(pNamespace, pName, pIsValueType) { GenericTypeParameters = types }; _types.AddType(st); return(st); }