Fix culture-specific string comparisons in EventSource (#83319)
authorJan Kotas <jkotas@microsoft.com>
Mon, 13 Mar 2023 03:41:35 +0000 (20:41 -0700)
committerGitHub <noreply@github.com>
Mon, 13 Mar 2023 03:41:35 +0000 (20:41 -0700)
commit541347cbb4270f3861a8bb5eada9f1547d309b3a
tree4e206f818363666b770b43034d1865eb578711fd
parent8599161c16cbeb9ceee8a043038edff37400be5c
Fix culture-specific string comparisons in EventSource (#83319)

* Fix culture-specific string comparisons in EventSource

These string comparisons are clearly not meant to be culture-specific. They were one of the reasons for loading ICU in Console.WriteLine("Hello world"); app.

Context https://github.com/dotnet/aspnetcore/issues/47029#issuecomment-1455553729

* Update src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs

Co-authored-by: Stephen Toub <stoub@microsoft.com>
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/ActivityTracker.cs
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs