public AbstractTable Delete(AbstractTable table) { if (!this._data.Contains(table)) { return(null); } int index = this._data.IndexOf(table); return(this.Delete(index)); }
public AbstractTable Delete(int index) { if (index >= this.Count) { throw new IndexOutOfRangeException(); } AbstractTable removedElement = this._data[index]; this._keys.RemoveAt(index); this._data.RemoveAt(index); return(removedElement); }
public void Add(string name, AbstractTable table) { this._keys.Add(name); this._data.Add(table); }
public void Add(AbstractTable table) { this._keys.Add(table.Name); this._data.Add(table); }
public bool Has(AbstractTable table) { return(_data.Contains(table)); }