From 7900a84bd68d7c9450bba719ce925b61043875f3 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sun, 26 Jul 2020 02:50:20 -0400 Subject: use ordinal comparison/sorting instead of invariant --- .../Framework/PerformanceMonitoring/PerformanceCounterCollection.cs | 2 +- src/SMAPI/Framework/PerformanceMonitoring/PerformanceMonitor.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/SMAPI/Framework/PerformanceMonitoring') diff --git a/src/SMAPI/Framework/PerformanceMonitoring/PerformanceCounterCollection.cs b/src/SMAPI/Framework/PerformanceMonitoring/PerformanceCounterCollection.cs index 0bb78c74..29a06794 100644 --- a/src/SMAPI/Framework/PerformanceMonitoring/PerformanceCounterCollection.cs +++ b/src/SMAPI/Framework/PerformanceMonitoring/PerformanceCounterCollection.cs @@ -189,7 +189,7 @@ namespace StardewModdingAPI.Framework.PerformanceMonitoring public void ResetSource(string source) { foreach (var i in this.PerformanceCounters) - if (i.Value.Source.Equals(source, StringComparison.InvariantCultureIgnoreCase)) + if (i.Value.Source.Equals(source, StringComparison.OrdinalIgnoreCase)) i.Value.Reset(); } diff --git a/src/SMAPI/Framework/PerformanceMonitoring/PerformanceMonitor.cs b/src/SMAPI/Framework/PerformanceMonitoring/PerformanceMonitor.cs index dfc4f31a..3f2608aa 100644 --- a/src/SMAPI/Framework/PerformanceMonitoring/PerformanceMonitor.cs +++ b/src/SMAPI/Framework/PerformanceMonitoring/PerformanceMonitor.cs @@ -23,7 +23,7 @@ namespace StardewModdingAPI.Framework.PerformanceMonitoring private readonly Stopwatch InvocationStopwatch = new Stopwatch(); /// The underlying performance counter collections. - private readonly IDictionary Collections = new Dictionary(StringComparer.InvariantCultureIgnoreCase); + private readonly IDictionary Collections = new Dictionary(StringComparer.OrdinalIgnoreCase); /********* -- cgit