Updated foreach to use T instead of var
authorAndrew Hoefling <andrew@hoeflingsoftware.com>
Tue, 5 Mar 2019 02:53:52 +0000 (21:53 -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/ff55c32b76d8843a9be7481200c05ac0d0e2c4c4

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

index 2fb6a2b..e521cb1 100644 (file)
@@ -192,7 +192,7 @@ namespace System.Collections.ObjectModel
             }
 
             int i = 0;
-            foreach (var item in collection)
+            foreach (T item in collection)
             {
                 Insert(index + i, item);
                 i++;