//Visual Basic 2010 Arrays als Argumenten Procedures en Functies public class Example1 { void Main() { int[] numbers; this.PrintArray(numbers); string[] words; this.PrintArray(words); System.DateTime[] dates; this.PrintArray(dates); this.PrintArray(null); Console.ReadLine(); } void PrintArray(Array values) { if ((values != null)) { for (System.Collections.IEnumerator _it1 = values.GetEnumerator(); _it1.MoveNext(); ) { object element = ((object)(_it1.Current)); Console.Write((element + " ")); } Console.WriteLine(); } else { Console.WriteLine("No array."); } } } //Bezoek www.vbvoorbeelden.be voor meer C# voorbeelden. //Copyright - De Wolf / vbvoorbeelden - 2003-2011 - Alle rechten voorbehouden.