Collection<T>: Validate parameters in the public methods (dotnet/coreclr#23166)
authorJustin Van Patten <jvp@justinvp.com>
Fri, 15 Mar 2019 14:52:31 +0000 (07:52 -0700)
committerStephen Toub <stoub@microsoft.com>
Fri, 15 Mar 2019 14:52:31 +0000 (10:52 -0400)
commit6ed2db0ce59f3e12aabea1cf8eceade53d14523a
tree83c91fc60c0eb9859c5b938e38e557a9a5c79dcc
parentf30249756ec97f36a3d9288f4d29f8fa1f66ff9d
Collection<T>: Validate parameters in the public methods (dotnet/coreclr#23166)

I was looking over the new Range methods on `Collection<T>` and it occurred to me that for all existing methods, parameter validation is done in the *public* methods before calling the *protected virtual* methods. This changes the new Range methods to do the same.

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