📅  最后修改于: 2022-03-11 14:49:08.255000             🧑  作者: Mango
var dict = new Dictionary { { "Property", "foo" } };
dynamic eo = dict.Aggregate(new ExpandoObject() as IDictionary,
(a, p) => { a.Add(p.Key, p.Value); return a; });
string value = eo.Property;