//Visual Basic 2010 Debugging in Visual Studio Instrumenting Applications public class Counter { private int m_Value; public Counter(int value) { this.m_Value = value; } public virtual int Value { get { Value = this.m_Value; } } public virtual void Raise() { this.m_Value += new System.EventHandler(1); } } public class Example4 { public static void Main() { Counter counter1 = new Counter(5); ArrayList arrayList1 = new ArrayList(); arrayList1.Add(counter1); Console.ReadLine(); } } //Bezoek www.vbvoorbeelden.be voor meer C# voorbeelden. //Copyright - De Wolf / vbvoorbeelden - 2003-2011 - Alle rechten voorbehouden.