如何去除输出中的“()”和“,”? nivåEtt是一个包含字符串和整数的元组列表。
private void RestrictResponseCache()
{
if (ResponseCahce.Count > this.ResponseCahceLimit * 2)
{
ResponseCahce.RemoveWhere(response => ResponseCahce.Count < this.ResponseCahceLimit * 2);
}
}
输出:
for (int i = 0; i < nivåEtt.Count(); i++)
{
tbxNivåTvå.AppendText(nivåEtt[i].ToString() + Environment.NewLine);
}
所需的输出:
(Johan Persson 910614 Falköping,11)
(Joakim Malmström 910614 Skaraborg,23)