Method Contains
- Namespace
- Alternet.UI.Extensions
- Assembly
- Alternet.UI.Common.dll
Contains(string, string, StringComparison)
Checks whether the source string contains the specified substring using the specified comparison type.
public static bool Contains(this string source, string toCheck, StringComparison comparison)
Parameters
sourcestringThe source string to check.
toCheckstringThe substring to seek.
comparisonStringComparisonThe comparison to use.
Returns
- bool
trueif the substring is found; otherwise,false.