Method Contains
Contains(string, string, StringComparison)
Determines whether a string contains a specified value using the specified string comparison option.
public static bool Contains(this string text, string value, StringComparison stringComparison)
Parameters
textstringThe string to search.
valuestringThe value to find.
stringComparisonStringComparisonThe string comparison option to use.
Returns
- bool
trueif the string contains the specified value; otherwise,false.