Code:public int Add(object value) { object[] tmp = new object[_items.Length + 1]; for (int i = 0; i < _items.Length; i++) { tmp[i] = _items[i]; } tmp[tmp.Length - 1] = value; _items = tmp; return tmp.Length - 1; }
Code:public int Add(object value) { object[] tmp = new object[_items.Length + 1]; for (int i = 0; i < _items.Length; i++) { tmp[i] = _items[i]; } tmp[tmp.Length - 1] = value; _items = tmp; return tmp.Length - 1; }