using System; static class Test { public static void Main () { var a = new { X = 1, Y = 2, }; Console.WriteLine(a); } }