convert dictionary to dynamic object c# code example
Example: c# convert dictionary to anonymous object
var dict = new Dictionary<string, object> { { "Property", "foo" } };
dynamic eo = dict.Aggregate(new ExpandoObject() as IDictionary<string, Object>,
(a, p) => { a.Add(p.Key, p.Value); return a; });
string value = eo.Property;