string letters = "abcdefghijklmabcdefghijklm";
string output = "";
char[] searchLetters = { 'c', 'a', '$' };
// test IndexOfAny to find first occurrence of character in array
output += "\n\nFirst occurrence of 'c', 'a', '$' is " + "located at " + letters.IndexOfAny( searchLetters );
output += "\nFirst occurrence of 'c, 'a' or '$' is " + "located at " + letters.IndexOfAny( searchLetters, 7 );
output += "\nFirst occurrence of 'c', 'a' or '$' is " + "located at " + letters.IndexOfAny( searchLetters, 20, 5 );
System.Console.WriteLine(output);
