using System.Collections.Generic;
public static void Main()
List<string> myList = new List<string>
string elementToFind = "banana";
int index = myList.FindIndex(a => a == elementToFind);
Console.WriteLine("The index of '" + elementToFind + "' in the list is " + index);
Console.WriteLine("The element '" + elementToFind + "' was not found in the list.");