public static bool HasDefaultConstructor([NotNull] this Type type) { if (type is null) { Throw.NullArgument(nameof(type)); } return(ConstructorCache.GetOrAddFor(type)); }
public static bool HasDefaultConstructor(this Type type) => ConstructorCache.GetOrAddFor(Ensure.NotNull(type));