I'm sure it's there; you only failed to see it by some reason. This will show some output:
string[]
using System.Linq;
list = new string[] {
"CodeProject", "StackOverflow", "MSDN", "Google", "Bing", "Yahoo", };
var output = list.Where(i => i.Length > 5);
foreach (var item in output)
System.Console.WriteLine(item);
As expected, on output you will see:
CodeProject
StackOverflow
Google
You can see the same if you make
list
a list of the type
System.Collection.Generic.List<string>
. What to try? :-)
—SA