小编Con*_*ule的帖子

如何将类的实例添加到变量 C# 中?

如何将类的实例添加到变量 C# 中?

for (int i = 0; i < 8; i++)
{
    var msg = new Param
    {
       type = "text",
       text = $"{ message[i].VlrParam.Replace("\n", "").Replace("\r", "")}"
    };

    // What I need to do to acumulate msg variable into a new variable?
    
}
Run Code Online (Sandbox Code Playgroud)

.net c#

0
推荐指数
2
解决办法
87
查看次数

标签 统计

.net ×1

c# ×1