/// <summary> /// Adds an <see cref="IExcludeTypeValidationFilter"/> that excludes the properties of /// the <see cref="Type"/> specified and its derived types from validaton. /// </summary> /// <param name="typeFullName">Full name of the type which should be excluded from validation.</param> public void Add(string typeFullName) { if (typeFullName == null) { throw new ArgumentNullException(nameof(typeFullName)); } var filter = new DefaultTypeNameBasedExcludeFilter(typeFullName); Add(filter); }
/// <summary> /// Adds an <see cref="IExcludeTypeValidationFilter"/> that excludes the properties of /// the <see cref="Type"/> specified and its derived types from validaton. /// </summary> /// <param name="typeFullName">Full name of the type which should be excluded from validation.</param> public void Add([NotNull] string typeFullName) { var filter = new DefaultTypeNameBasedExcludeFilter(typeFullName); Add(filter); }