//Visual Basic 2010 Static Variabelen Procedures en Functies public class Example2 { void Main() { this.Test(); this.Test(); this.Test(); Console.ReadLine(); } void Test() { bool firstExecution = true; if (firstExecution) { Console.WriteLine("First execution of Test."); firstExecution = false; } else { Console.WriteLine("Not the first execution of Test."); } } } //Bezoek www.vbvoorbeelden.be voor meer C# voorbeelden. //Copyright - De Wolf / vbvoorbeelden - 2003-2011 - Alle rechten voorbehouden.