示例#1
0
 /// <summary>
 /// Applies all rules to this instance.
 /// </summary>
 private void ApplyRules()
 {
     InitializeErrors();
     foreach (var propertyName in _rules.Select(x => x.PropertyName))
     {
         ApplyRules(propertyName);
     }
 }
示例#2
0
        /// <summary>
        /// Applies all rules to this instance.
        /// </summary>
        protected void ApplyRules()
        {
            InitializeErrors();

            foreach (string propertyName in rules.Select(x => x.PropertyName))
            {
                ApplyRules(propertyName);
            }
        }
        /// <summary>
        /// Applies all rules to this instance.
        /// </summary>
        private void ApplyRules()
        {
            this.InitializeErrors();

            foreach (string propertyName in rules.Select(x => x.PropertyName))
            {
                this.ApplyRules(propertyName);
            }
        }