public static ConstructorInfo[] GetConstructors(Type type) { return type.GetTypeInfo().DeclaredConstructors.ToArray(); } }