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
sourcestringSource string to process.
toCheckstringThe string to seek.
compStringComparisonOne 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.