コード例 #1
0
ファイル: NotifyDataErrorInfo.cs プロジェクト: ycdivfx/nyx
 /// <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);
            }
        }
コード例 #3
0
        /// <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);
            }
        }