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

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

Removes an IEnumerable of objects from the watch list.
private RemoveObjectsFromWatchList ( IEnumerable values ) : void
values IEnumerable The values to remove from the watch list.
Результат void
        private void RemoveObjectsFromWatchList(IEnumerable values)
        {
            foreach (object value in values)
            {
                RemoveObjectFromWatchList(value);
            }

            // Supports IObservableCollection through INotifyCollectionChanged and support IEntityCollectionCore 
            var iNotifyCollectionChanged = values as INotifyCollectionChanged;
            if (iNotifyCollectionChanged != null)
            {
                iNotifyCollectionChanged.CollectionChanged -= iNotifyCollectionChanged_CollectionChanged;

                RemoveObjectFromWatchList(values);
            }
        }