Updated RemoveAt->RemoveItem. This change removes redundent validation checks that...
authorAndrew Hoefling <andrew@hoeflingsoftware.com>
Tue, 5 Mar 2019 23:46:05 +0000 (18:46 -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/d3b9f9dac784c03e10619ff49c8f22579940192c

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

index f98183a..ea7bcb3 100644 (file)
@@ -220,7 +220,7 @@ namespace System.Collections.ObjectModel
 
             for (int i = index; i < length; i++)
             {
-                RemoveAt(index);
+                RemoveItem(index);
             }
         }