Switch from IndexOf(string) to Contains(string) for better readability and performanc...
authorAndrii Siriak <siryaka@gmail.com>
Fri, 21 Jun 2019 22:25:09 +0000 (01:25 +0300)
committerJan Kotas <jkotas@microsoft.com>
Mon, 24 Jun 2019 21:35:13 +0000 (14:35 -0700)
commit27229c8c10fabe9c689805e68ff225a96664b5cf
treee6a0a3d5fd763a9993e6177dd66e7b24be076cad
parentd505b49a285f6cd7776230fb7f0d73d3ac20b73a
Switch from IndexOf(string) to Contains(string) for better readability and performance (#38757)

* Fix performance IndexOf(string) -> Contains(string)

* Make comparison ordinal

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
src/System.Private.CoreLib/shared/Internal/Win32/RegistryKey.cs