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)