コード例 #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 DecimalValidator();

			ConfigureValidatorMessage(validator);

			return validator;
		}
コード例 #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 DecimalValidator();

            ConfigureValidatorMessage(validator);

            return(validator);
        }