/******************************************************************** @date 2014-10-22 @author Tiger @brief 语法 @details foreach ********************************************************************/ using System; class Demo { static void Main() { string[] arr = new string[] { "ABC", "DEF", "GHI" }; foreach (string elem in arr) { Console.WriteLine(elem); } Console.ReadLine(); } }
时间: 2024-10-10 07:03:33