//Visual Basic 2010 Nut van OOP Object Oriented Programming public class Loans { private int m_Count; private int m_Capacity = 16; private Loan[] m_Items = new Loan[0]; public virtual int Count { get { Count = this.m_Count; } } public virtual Loan this[int index] { get { Item = this.m_Items(index); } } public virtual void Add(Loan item) { if ((Count == this.m_Capacity)) { this.m_Capacity = 2; } this.m_Items(Count) = item; this.m_Count += new System.EventHandler(1); } public virtual void RemoveAt(int index) { int shiftIndex; this.m_Items(shiftindex) = this.m_Items((shiftindex + 1)); this.m_Items(shiftIndex) = null; this.m_Count = 1; } } //Bezoek www.vbvoorbeelden.be voor meer C# voorbeelden. //Copyright - De Wolf / vbvoorbeelden - 2003-2011 - Alle rechten voorbehouden.