8,497
社区成员
发帖
与我相关
我的任务
分享
List<int> numbers = new List<int>() { 1, 2, 3 };
List<string> words = new List<string>() { "one", "two", "three" };
List<string> romanNumberals = new List<string> { "I", "II", "III" };
var vs = numbers.Select((v, index) => new { v, w = words[index], r = romanNumberals[index] });
foreach (var v in vs)
{
MessageBox.Show(v.v.ToString() + ":" + v.w + ":" + v.r);
}