how to use linq contains extension method

LINQ supports a Contains extension method which operates on IEnumerable type data.

In the example given below, the Contains extension method is used on the List to search a particular string. A drawback of using LINQ extension method is that the execution is slow. In the query below, the data is in List collection. All cities with the names containing the string �San� are returned.

List cities = new List(); 	
	cities.Add("New Delhi");                  	
	cities.Add("Bangalore");                   	
	cities.Add("Hyderabad");                	
	cities.Add("Bombay");   
var query = from c in cities
			where c.Contains("Ban")
			select c;
foreach (var row in query)
{               
	Console.WriteLine(row);            
}