diff --git a/src/Caliburn.Micro.Core/BindableCollection.cs b/src/Caliburn.Micro.Core/BindableCollection.cs index 0a43719f..1ed39658 100644 --- a/src/Caliburn.Micro.Core/BindableCollection.cs +++ b/src/Caliburn.Micro.Core/BindableCollection.cs @@ -3,7 +3,7 @@ using System.Collections.ObjectModel; using System.Collections.Specialized; using System.ComponentModel; - +using System.Linq; namespace Caliburn.Micro { /// @@ -250,9 +250,8 @@ void RemoveRange() { var previousNotificationSetting = IsNotifying; IsNotifying = false; - foreach (var item in items) + foreach (var index in items.Select(item => IndexOf(item))) { - var index = IndexOf(item); if (index >= 0) { RemoveItemBase(index);