Updated index out of range exception check to be a single comparison
authorAndrew Hoefling <andrew@hoeflingsoftware.com>
Tue, 5 Mar 2019 02:53:26 +0000 (21:53 -0500)
committerSantiago Fernandez Madero <safern@microsoft.com>
Fri, 8 Mar 2019 19:20:58 +0000 (11:20 -0800)
commit89a14c2452c54246729103cf306db79b60eb41d9
tree435051e48c9e38b579c65dc05b05c4fcfa5d62c5
parent941ac320b203ff27d6f40bc8de08ecc8bf971f30
Updated index out of range exception check to be a single comparison

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