I wanna create an anonymous type that I can set the property name dynamically. it doesn’t have to be an anonymous type. All I want to achieve is set any objects property names dynamically. It can be ExpandoObject, but dictionary will not work for me.
What are your suggestions?
Only
ExpandoObjectcan have dynamic properties.Edit:
Here is an example of Expand Object usage (from its MSDN description):