Wednesday, May 20, 2009

anonymous types can infer property names from the variable name

string hello = "world"; 
var o = new { hello };
Console.WriteLine(o.hello);

No comments: