Bytes2you.Validation.Extensions.TypeExtensions.HasPublicConstructors C# (CSharp) Method

HasPublicConstructors() public static method

public static HasPublicConstructors ( this @type ) : bool
@type this
return bool
        public static bool HasPublicConstructors(this Type @type)
        {
            if (@type == null)
            {
                throw new ArgumentNullException("@type");
            }

            return @type.GetConstructors(BindingFlags.Instance | BindingFlags.Public).Any();
        }
    }