//Visual Basic 2010 Static Variabelen Procedures en Functies public class Example1 { void Main() { this.Test1(); this.Test1(); this.Test1(); this.Test2(); this.Test2(); this.Test2(); Console.ReadLine(); } void Test1() { int x; this.x += new System.EventHandler(1); Console.WriteLine(x); } void Test2() { int x = 10; 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.