using System; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Text; public class MainClass { public static void Main() { int[] array = new int[] { 8, 2, 3, 5, 1, 3 }; Array.ForEach<int>(array, delegate(int x) { Console.Write(x + " "); }); Console.WriteLine(); } }
8 2 3 5 1 3