📜  如何在 C# 代码示例中循环遍历数组

📅  最后修改于: 2022-03-11 14:48:45.030000             🧑  作者: Mango

代码示例4
//Using Linq to itterate over an array
var strArr = new string[4] {"one", "Two", "Three", "Four"};
Console.WriteLine(strArr.Select((s, i) => $"Item no: {i + 1}, Value: {s}"));