Catel.Windows.Controls.WarningAndErrorValidator.RemoveObjectFromWatchList C# (CSharp) Метод

RemoveObjectFromWatchList() приватный Метод

Removes the object from watch list.
private RemoveObjectFromWatchList ( object value ) : void
value object The object to remove from the watch list.
Результат void
        private void RemoveObjectFromWatchList(object value)
        {
            if (value == null)
            {
                return;
            }

            var iNotifyPropertyChanged = value as INotifyPropertyChanged;
            if (iNotifyPropertyChanged != null)
            {
                iNotifyPropertyChanged.PropertyChanged -= iNotifyPropertyChanged_PropertyChanged;
            }

            RaiseBusinessValidationWarningOrError(value, string.Empty, ValidationEventAction.ClearAll, ValidationType.Warning);
            RaiseBusinessValidationWarningOrError(value, string.Empty, ValidationEventAction.ClearAll, ValidationType.Error);

            lock (_objectValidationLock)
            {
                _objectValidation.Remove(value);
            }
        }