dynamic contacts = new List<dynamic>();
contacts.Add(new ExpandoObject());
contacts[0].Name = "Patrick Hines" ;
contacts[0].Phone = "206-555-0144" ;
想做如下。將動態值賦給動態對象
dynamic contacts = new List<dynamic>();
contacts.Add(new ExpandoObject());
contacts[0]. + "Name" = "Patrick Hines" ;
contacts[0]. + "Phone" = "206-555-0144" ;
謝謝你這麼多。 – user3197034