Catel.Data.ModelBase.CatchUpWithSuspendedAnnotationsValidation C# (CSharp) Method

CatchUpWithSuspendedAnnotationsValidation() private method

Catches up with suspended annotations validation. This method will take care of unvalidated properties that have been changed during the suspended validation state of this model.
private CatchUpWithSuspendedAnnotationsValidation ( ) : void
return void
        private void CatchUpWithSuspendedAnnotationsValidation()
        {
            if (_propertiesNotCheckedDuringDisabledValidation.Count > 0)
            {
                Log.Debug("Validation was suspended, and properties were not checked during this suspended time, checking them now");

                foreach (var property in _propertiesNotCheckedDuringDisabledValidation)
                {
                    var propertyData = GetPropertyData(property);
                    var propertyValue = GetValueFast<object>(propertyData.Name);
                    ValidatePropertyUsingAnnotations(property, propertyValue, propertyData);
                }

                _propertiesNotCheckedDuringDisabledValidation.Clear();
            }
        }