I stumbled upon this weird form of syntax in C#, and was trying to figure out what it means and how to use it. There doesn't seem to be any documentation on the net on this.
object data = new { var1 = someValue, var2 = anotherValue }
There are no errors with this syntax, so I assume it's something that C# allows. what does it mean?