// Collection of code snippets by Arne Vajhøj // (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) using System; public class WhyVar { public static void Main(String[] args) { var z = new { A=123, B="ABC" }; Console.WriteLine(z.A + " " + z.B); } }