System.Windows.Controls.AutoCompleteSearch.Contains C# (CSharp) Method

Contains() public static method

Check if the prefix is contained in the string value. The current culture's case insensitive string comparison operator is used.
public static Contains ( string text, string value ) : bool
text string The AutoCompleteBox prefix text.
value string The item's string value.
return bool
        public static bool Contains(string text, string value)
        {
            return value.Contains(text, StringComparison.CurrentCultureIgnoreCase);
        }