ConstructorInfo[] GetConstructorsFromGTDWithHint (BindingFlags hint)
{
TypeBuilder tb = generic_type as TypeBuilder;
if (tb == null)
return generic_type.GetConstructors (hint);
if (tb.ctors == null)
return new ConstructorInfo [0];
ConstructorInfo[] res = new ConstructorInfo [tb.ctors.Length];
tb.ctors.CopyTo (res, 0);
return res;
}