C#给ExpandoObject动态添加对象
作者:互联网
C#给ExpandoObject动态添加属性
C#给ExpandoObject动态添加对象:
方法一:
dynamic x = new ExpandoObject();
x.NewProp = string.Empty;
方法二:
var x = new ExpandoObject() as IDictionary<string, Object>;
x.Add("NewProp", string.Empty);
标签:string,C#,NewProp,ExpandoObject,new,添加 来源: https://www.cnblogs.com/mikechang/p/15321227.html