public static bool HasPublicConstructors(this Type @type) { if (@type == null) { throw new ArgumentNullException("@type"); } return @type.GetConstructors(BindingFlags.Instance | BindingFlags.Public).Any(); } }