Friday, January 11, 2008

Quiz of the day

Identify the C# 2.0 features used in the following code.

class Program
{
static void Main(string[] args)
{
List ls=new List(new string[]{"anoop","suresh","rajesh","sachin" });
ls.ForEach(delegate(string s)
{
Console.WriteLine(s);
}
);
Console.ReadLine();
}
}

No comments: