Code: using System; using System.Collections.Generic; using System.Text; namespace Test { class Program { static void Main(string[] args) { // Create and initialize some array... int[] myArray = new int[10]; for (int i = 0; i < 10; ++i) { myArray[i] = i * 10; } // Use it.. PassArray(myArray); } //v---------- This is where the "magic" happens. Declare the type as 'int[]'. static void PassArray(int[] array) { foreach (int i in array) { Console.WriteLine(i); } } } }