c# create anonymous object code example
Example 1: c# anonymous class
var myObject = new { Foo = "foo", Bar = 1, Quz = 4.2f }
Example 2: how to access items inside anonymous object
string str = (string)jsonObj.SelectToken("prop1.prop2");
var myObject = new { Foo = "foo", Bar = 1, Quz = 4.2f }
string str = (string)jsonObj.SelectToken("prop1.prop2");