C#遍历Queue的正确姿势

版权声明:本文为博主原创文章,转载请发邮件到[email protected]授权。 https://blog.csdn.net/qq_33712555/article/details/83106547

C#遍历Queue的正确姿势

首先,using System.Collections.Generic;

然后,

Queue<string> vList = new Queue<string>();

string str = "";
foreach (var item in vList)
{
	str += item+" ";
}

猜你喜欢

转载自blog.csdn.net/qq_33712555/article/details/83106547