Use CopyTo(arr) instead of creating List<T> first (#36228)
authorYoussef Victor <31348972+Youssef1313@users.noreply.github.com>
Tue, 12 May 2020 16:50:06 +0000 (18:50 +0200)
committerGitHub <noreply@github.com>
Tue, 12 May 2020 16:50:06 +0000 (12:50 -0400)
commit583fa67ff9551784456b876d2ea30bc9697077b7
tree0a36578b9056aa543343aa456d6c96c4c4622252
parentdf8e2d751ef852bb5c440ae4dfb5d7cde000a4d4
Use CopyTo(arr) instead of creating List<T> first (#36228)

* Use LINQ ToArray

* Update RoType.cs

* Update RoType.cs

* Update src/libraries/System.Reflection.MetadataLoadContext/src/System/Reflection/TypeLoading/Types/RoType.cs

Co-authored-by: Stephen Toub <stoub@microsoft.com>
* Fix whitespace causing analyzer warnings

Co-authored-by: Stephen Toub <stoub@microsoft.com>
src/libraries/System.Reflection.MetadataLoadContext/src/System/Reflection/TypeLoading/Types/RoType.cs