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
In C# you could do:
var obj = new SomeObject { value = 123476, description = "this is my new object", mode = 1 };
EDIT: Holding this here pending clarification from OP as I may have misunderstood his intentions.