Updated RemoveItemsRange to properly remove each item and not just the index items
authorAndrew Hoefling <andrew@hoeflingsoftware.com>
Tue, 5 Mar 2019 05:26:08 +0000 (00:26 -0500)
committerSantiago Fernandez Madero <safern@microsoft.com>
Fri, 8 Mar 2019 19:20:58 +0000 (11:20 -0800)
Commit migrated from https://github.com/dotnet/coreclr/commit/b474a2a96d6ca31f3a093fd83b49537eee382794

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/Collection.cs

index a320a4b..3fb2693 100644 (file)
@@ -215,7 +215,7 @@ namespace System.Collections.ObjectModel
 
             for (int i = index; i < length; i++)
             {
-                RemoveAt(index);
+                RemoveAt(i);
             }
         }