I'm new to C#, and I'm trying to search a string to see if it contains a member of a string array. If the string does contain something from the array, then I want to record the index number of the array member it found, and then display it.
string stringToBeSearched = "I want to find item2 or item6";
string[] array = { "item1", "item2", "item3" };
// Search stringToBeSearched for anything in array, then enter the array
// member's index value into int position
int position = //array index number of item found
Console.WriteLine("{0} was found.", array[position]);
Console.ReadLine();