-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove char[] allocations from RegistryKey and List copy to Array (#7…
…8737) * Avoid redondant verification EnsureNotDisposed() already called by SubKeyCount & ValueCount. * Replace List by string[] to avoid List.ToArray() copy (it must handle rare cases where there are more or less elements during the loop). * Apply suggestions from code review Co-authored-by: Stephen Toub <stoub@microsoft.com>
- Loading branch information
1 parent
3855a99
commit d47a24c
Showing
1 changed file
with
21 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters