I want to create anonymous object in C#, and some its child is also object. Is it possible to do that in C#? (PS. I got some hint error for the following code)
var o = new { age = 123, child = { name = "asdffff"} };
I want to create anonymous object in C#, and some its child is also object. Is it possible to do that in C#? (PS. I got some hint error for the following code)
var o = new { age = 123, child = { name = "asdffff"} };
You're missing the 'new':