Switch from IndexOf(string) to Contains(string) for better readability and performanc...
commit0abee2baf5c8e2588511f1b8665dbeeb090d320a
authorAndrii Siriak <siryaka@gmail.com>
Fri, 21 Jun 2019 22:25:09 +0000 (22 01:25 +0300)
committerMarek Safar <marek.safar@gmail.com>
Mon, 24 Jun 2019 19:12:12 +0000 (24 21:12 +0200)
tree48773859cc4f6d0fe0e69a4ac0f0903a005766e6
parenteeb377842ea2205ddc2721bd1692ad789437511b
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>
netcore/System.Private.CoreLib/shared/Internal/Win32/RegistryKey.cs