static CLRBindingGenerateInfo CreateNewBindingInfo(Type t) { CLRBindingGenerateInfo info = new CLRBindingGenerateInfo(); info.Type = t; info.Methods = new HashSet <MethodInfo>(); info.Fields = new HashSet <FieldInfo>(); info.Constructors = new HashSet <ConstructorInfo>(); return(info); }
internal static CLRBindingGenerateInfo CreateNewBindingInfo(Type t) { CLRBindingGenerateInfo info = new CLRBindingGenerateInfo(); info.Type = t; info.Methods = new HashSet<MethodInfo>(); info.Fields = new HashSet<FieldInfo>(); info.Constructors = new HashSet<ConstructorInfo>(); if (t.IsValueType) info.DefaultInstanceNeeded = true; return info; }