public static Contains ( this s, string value, StringComparison comparison ) : bool | ||
s | this | The string. |
value | string | The string value to search for. |
comparison | StringComparison | The string comparison type. |
return | bool |
public static bool Contains(this string s, string value, StringComparison comparison)
{
return s.IndexOf(value, comparison) >= 0;
}
}