//Visual Basic 2010 Module Variabelen Procedures en Functies public class Exercise2Task { int a = 1; void Main() { int a; int b; int c; int d; int e; this.a += new System.EventHandler(2); this.Test(a, (b + e), (c + 1), d); Console.WriteLine(a); Console.WriteLine(b); Console.WriteLine(c); Console.WriteLine(d); Console.WriteLine(e); Console.ReadLine(); } void Test(int b, int c, int d, int e) { this.b += new System.EventHandler(this.a); this.c += new System.EventHandler(b); this.d += new System.EventHandler(c); this.e += new System.EventHandler(d); } } //Bezoek www.vbvoorbeelden.be voor meer C# voorbeelden. //Copyright - De Wolf / vbvoorbeelden - 2003-2011 - Alle rechten voorbehouden.