From c27334bdc83cc706f657e45ca0f30b1f9ce361ec Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Tue, 29 Nov 2022 16:51:48 +0000 Subject: [PATCH] Fix CA1307 violations --- X10D/src/Collections/DictionaryExtensions.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/X10D/src/Collections/DictionaryExtensions.cs b/X10D/src/Collections/DictionaryExtensions.cs index 86ae231..67872aa 100644 --- a/X10D/src/Collections/DictionaryExtensions.cs +++ b/X10D/src/Collections/DictionaryExtensions.cs @@ -227,7 +227,7 @@ public static class DictionaryExtensions return string.Empty; } - return value.Contains(' ') ? $"\"{value}\"" : value; + return value.Contains(' ', StringComparison.Ordinal) ? $"\"{value}\"" : value; } static string GetQueryParameter(KeyValuePair pair) @@ -282,7 +282,7 @@ public static class DictionaryExtensions return string.Empty; } - return value.Contains(' ') ? $"\"{value}\"" : value; + return value.Contains(' ', StringComparison.Ordinal) ? $"\"{value}\"" : value; } string GetQueryParameter(KeyValuePair pair) @@ -351,7 +351,7 @@ public static class DictionaryExtensions return string.Empty; } - return value.Contains(' ') ? $"\"{value}\"" : value; + return value.Contains(' ', StringComparison.Ordinal) ? $"\"{value}\"" : value; } string GetQueryParameter(KeyValuePair pair)