SyntaxFix
Write A Post
Hire A Developer
Questions
You can try with regular expression
string s; Regex r = new Regex ("a|b|c"); bool containsAny = r.IsMatch (s);