Contains settings that control the behavior of a particular instance of ValidationHelper.
Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ValidationHelper"/> class.
        /// </summary>
        /// <param name="settings">An instance of <see cref="ValidationSettings"/> that control the behavior of this instance of <see cref="ValidationHelper"/>.</param>
        public ValidationHelper(ValidationSettings settings)
        {
            Guard.NotNull(settings, nameof(settings));

            ValidationRules = new ValidationRuleCollection();
            Settings        = settings;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ValidationHelper"/> class.
        /// </summary>
        /// <param name="settings">An instance of <see cref="ValidationSettings"/> that control the behavior of this instance of <see cref="ValidationHelper"/>.</param>
        public ValidationHelper(ValidationSettings settings)
        {
            Guard.NotNull(settings, nameof(settings));

            ValidationRules = new ValidationRuleCollection();
            Settings = settings;
        }