C#-System.Dynamic.ExpandoObject

1             dynamic dynamicObject = new System.Dynamic.ExpandoObject();
2             dynamicObject.Id = Guid.NewGuid();
3             (dynamicObject as ICollectionstring, object>>).Add(new KeyValuePair<string, object>("Name", "ChenFeng"));
4             Console.WriteLine(dynamicObject.Id);
5             Console.WriteLine(dynamicObject.Name);

 

你可能感兴趣的:(C#-System.Dynamic.ExpandoObject)