Is there a way to add a property to an ExpandoObject with the same name as a string value?
For example, if I have:
string propName = \"ProductNumber\"; d
Cast the ExpandoObject to an IDictionary to do this:
ExpandoObject
IDictionary
string propName = "ProductNumber"; dynamic obj = new System.Dynamic.ExpandoObject(); var dict = (IDictionary)obj; dict[propName] = 123;