diff --git a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ContentType.cs b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ContentType.cs index f4a06463c14..1a54d282157 100644 --- a/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ContentType.cs +++ b/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/ContentType.cs @@ -636,21 +636,7 @@ private static bool IsAsciiLetterOrDigit(char character) => /// /// input character /// - private static bool IsLinearWhiteSpaceChar(char ch) - { - if (ch > ' ') - { - return false; - } - - foreach (char c in LinearWhiteSpaceChars) - { - if (ch == c) - return true; - } - - return false; - } + private static bool IsLinearWhiteSpaceChar(char ch) => LinearWhiteSpaceChars.Contains(ch); /// /// Lazy initialization for the ParameterDictionary