foreach(string friendName in friendNames) { Console.WriteLine(friendName); } 只读访问 转载于:https://www.cnblogs.com/happykakeru/archive/2011/07/13/2105518.html