This is VERY kewl - LINQ - Language INtegrated Query - bringing query and set operations to the C# / VB world. This will be way fun :)
http://blogs.msdn.com/danielfe/archive/2005/09/13/464904.aspx
using System;
using System.Query;
using Danielfe;
class Program
{
static void Main(string[] args)
string[] aBunchOfWords = {"One","Two", "Hello",
"World", "Four", "Five"};
var result =
from s in aBunchOfWords // query the string array
where s.Length == 5 // for all words with length = 5
select s; // and return the string
//PrintToConsole is an Extension method that prints the value
result.Print();
}
This application prints the following result
Hello
World