循环输邮索引值,使用for是没有任何问题:
class Bh { public string[] str { get; set; } public void TestFor() { for (int i = 0; i < str.Length; i++) { Console.WriteLine("index:{0},Value:{1}", i, str[i]); } } }
循环输邮索引值,使用for是没有任何问题:
class Bh { public string[] str { get; set; } public void TestFor() { for (int i = 0; i < str.Length; i++) { Console.WriteLine("index:{0},Value:{1}", i, str[i]); } } }
相关文章: