SyntaxFix
Write A Post
Hire A Developer
Questions
If you are looking for single characters, you can use String.IndexOfAny().
String.IndexOfAny()
If you want arbitrary strings, then I'm not aware of a .NET method to achieve that "directly", although a regular expression would work.