using System.Collections.Generic;
public static void Main()
List<string> myCol = new List<string>{ "RED", "orange", "yellow", "RED", "green", "blue", "RED", "indigo", "violet", "RED" };
Console.WriteLine( "Initial contents of the StringCollection:" );
if ( myCol.Contains( "orange" ) )
Console.WriteLine( "The collection contains \"orange\" at index {0}.", myCol.IndexOf( "orange" ) );