c# anonymous class

C#
var myObject = new { Foo = "foo", Bar = 1, Quz = 4.2f }
Source

Also in C#: