public void Add(DictionaryItem item) { DictionaryItem[] newData = new DictionaryItem[GetLength() + 1]; for (int i = 0; i < GetLength(); i++) { newData[i] = _data[i]; } ; newData[GetLength()] = item; _data = newData; }
public void RemoveAt(int index) { if (index < GetLength()) { DictionaryItem[] newData = new DictionaryItem[GetLength() - 1]; for (int i = 0; i < index; i++) { newData[i] = _data[i]; } for (int i = index; i < GetLength() - 1; i++) { newData[i] = _data[i + 1]; } _data = newData; } }
public void Insert(DictionaryItem item) { }