Example #1
0
        public static bool HasDefaultConstructor([NotNull] this Type type)
        {
            if (type is null)
            {
                Throw.NullArgument(nameof(type));
            }

            return(ConstructorCache.GetOrAddFor(type));
        }
Example #2
0
 public static bool HasDefaultConstructor(this Type type)
 => ConstructorCache.GetOrAddFor(Ensure.NotNull(type));