Developer, Former MVP, now at Microsoft - Best of 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013
class Program{ delegate T Func<T>(T t); static void Main(string[] args) { // object init - // makes no sense in this example but hey... Timer t = new Timer(2000) { AutoReset = false, Enabled = true }; // local var inf, anonymous types var i = new { Name = "Fred", Age = 6 }; Console.WriteLine(i.ToString()); // lambdas Func<int> f = j => j + 1; Console.WriteLine(f(5)); Console.ReadLine(); }}