阅读背景:

如何设置匿名对象的属性值?

来源:互联网 

this is my code for example:

这是我的代码示例:

var output = new
{
    NetSessionId = string.Empty
};

foreach (var property in output.GetType().GetProperties())
{
    property.SetValue(output, "Test", null);
}
var 



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: