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);
}
}