Validates that the content is not set to the specified value
Наследование: AbstractValidator
Пример #1
0
        /// <summary>
        /// Constructs and configures an <see cref="IValidator"/>
        /// instance based on the properties set on the attribute instance.
        /// </summary>
        /// <returns></returns>
        public override IValidator Build()
        {
            IValidator validator = new NotSameValueValidator(value);

            ConfigureValidatorMessage(validator);
            return(validator);
        }
		/// <summary>
		/// Constructs and configures an <see cref="IValidator"/>
		/// instance based on the properties set on the attribute instance.
		/// </summary>
		/// <returns></returns>
		public override IValidator Build()
		{
			IValidator validator = new NotSameValueValidator(value);
			ConfigureValidatorMessage(validator);
			return validator;
		}