Javascript "var obj = new Object" Equivalent in C# -
Javascript "var obj = new Object" Equivalent in C# -
is there easy way create , object , set properties in c# can in javascript.
example javascript:
var obj = new object; obj.value = 123476; obj.description = "this new object"; obj.mode = 1;
try c# anonymous classes
var obj = new { value = 123475, description = "this new object", mode = 1 }; there lots of differences though...
@valera kolupaev & @glennferrielive mentioned approach dynamic keyword
c# javascript oop object translation
Comments
Post a Comment