Updated RemoveRange invocation of RemoveAt to use index instead of i, because the...
authorAndrew Hoefling <andrew@hoeflingsoftware.com>
Tue, 5 Mar 2019 23:15:08 +0000 (18:15 -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/2fb96bfe42d2b97577918c24be445cc8106ae593

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

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