System.Reflection.MonoGenericClass.GetConstructorsFromGTDWithHint C# (CSharp) Method

GetConstructorsFromGTDWithHint() private method

private GetConstructorsFromGTDWithHint ( BindingFlags hint ) : System.Reflection.ConstructorInfo[]
hint BindingFlags
return System.Reflection.ConstructorInfo[]
		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;
		}