【发布时间】:2022-06-27 21:16:08
【问题描述】:
如何将类的实例添加到变量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?
}
【问题讨论】: