给List编个号
csharp
int[] numbers = { 5, 4, 1, 3, 9, 8, 6, 7, 2, 0 };
int i = 0;
var q = (from n in numbers
select (index:++i,number:n))
.ToList();
foreach (var v in q)
{
Console.WriteLine($"i = {v.index}, v = {v.number}");
}