Updated InsertItemsRange to simplify the expression and added performance improvement...
authorAndrew Hoefling <andrew@hoeflingsoftware.com>
Wed, 6 Mar 2019 00:00:01 +0000 (19:00 -0500)
committerSantiago Fernandez Madero <safern@microsoft.com>
Fri, 8 Mar 2019 19:20:58 +0000 (11:20 -0800)
commit14a6e16c6a55f33ee2204d43bd90f1592826c1db
treeb7188b9ce1508b40ea853f137d0f009b18833749
parentcdb34d408a840f67627fc902b0159eab35db119a
Updated InsertItemsRange to simplify the expression and added performance improvements. If the underlying `items` is using List<T> we should use it's InsertRange method since it is optimized, othersie we use InsertItem

Commit migrated from https://github.com/dotnet/coreclr/commit/dadee3b355c75e33d0c925b27ba3f301d100a51b
src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/Collection.cs