How to set value for property of an anonymous object?

后端 未结 8 913
心在旅途
心在旅途 2020-12-05 17:44

this is my code for example:

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

foreach (var property in output.GetType().GetProperties())
{
    property         


        
8条回答
提交回复
热议问题