📜  C# 循环遍历对象数组 - C# 代码示例

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

代码示例1
List names = new List() { "Suresh Dasari", "Rohini Alavala", "Trishika Dasari" };

            foreach (string name in names)

            {

                Console.WriteLine(name);

            }