Method Contains
Contains(string, string, StringComparison)
Checks whether source string contains toCheck string.
public static bool Contains(this string source, string toCheck, StringComparison comp)
Parameters
source
stringSource string to process.
toCheck
stringThe string to seek.
comp
StringComparisonOne of the enumeration values that specifies the rules for the search.
Returns
- bool
A value indicating whether specified string is a part of source string.