ExpandoObject class provides us the capability to add and delete members of its instances at runtime and also to set and get values of these members. We have to use System.Dynamic namespace to use this class. We must use the dynamic keyword to enable late binding for an instance of the ExpandoObject class.
Example:
Output :
No comments:
Post a Comment