diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/ListCollectionView.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/ListCollectionView.cs index 2fe20fd83c2..609831d336f 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/ListCollectionView.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/ListCollectionView.cs @@ -1681,8 +1681,6 @@ protected override void ProcessCollectionChanged(NotifyCollectionChangedEventArg if (args == null) throw new ArgumentNullException("args"); - ValidateCollectionChangedEventArgs(args); - // adding or replacing an item can change CanAddNew, by providing a // non-null representative if (!_isItemConstructorValid) @@ -2517,42 +2515,6 @@ private IList SourceList //------------------------------------------------------ #region Private Methods - - private void ValidateCollectionChangedEventArgs(NotifyCollectionChangedEventArgs e) - { - switch (e.Action) - { - case NotifyCollectionChangedAction.Add: - if (e.NewItems.Count != 1) - throw new NotSupportedException(SR.Get(SRID.RangeActionsNotSupported)); - break; - - case NotifyCollectionChangedAction.Remove: - if (e.OldItems.Count != 1) - throw new NotSupportedException(SR.Get(SRID.RangeActionsNotSupported)); - break; - - case NotifyCollectionChangedAction.Replace: - if (e.NewItems.Count != 1 || e.OldItems.Count != 1) - throw new NotSupportedException(SR.Get(SRID.RangeActionsNotSupported)); - break; - - case NotifyCollectionChangedAction.Move: - if (e.NewItems.Count != 1) - throw new NotSupportedException(SR.Get(SRID.RangeActionsNotSupported)); - if (e.NewStartingIndex < 0) - throw new InvalidOperationException(SR.Get(SRID.CannotMoveToUnknownPosition)); - break; - - case NotifyCollectionChangedAction.Reset: - break; - - default: - throw new NotSupportedException(SR.Get(SRID.UnexpectedCollectionChangeAction, e.Action)); - } - } - - /// /// Create, filter and sort the local index array. /// called from Refresh(), override in derived classes as needed.