This is a meta validator. It is only useful to test a source content before setting it on the target instance.
Inheritance: AbstractValidator
Exemplo n.º 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 SingleValidator();

			ConfigureValidatorMessage(validator);

			return validator;
		}
Exemplo n.º 2
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 SingleValidator();

            ConfigureValidatorMessage(validator);

            return(validator);
        }