Is there an easy way to create and Object and set properties in C# like you can in Javascript.
Example Javascript:
var obj = new Object; obj.value = 123
try c# anonymous classes
var obj = new { value = 123475, description = "this is my new object", mode = 1 };
there are lots of differences though...
@Valera Kolupaev & @GlennFerrieLive mentioned another approach with dynamic keyword