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