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
text
stringThe string to search.
value
stringThe value to find.
stringComparison
StringComparisonThe string comparison option to use.
Returns
- bool
true
if the string contains the specified value; otherwise,false
.