public int IndexOfKey(string key) { for (int i = 0; i < _items.Count; i++) if (key == _items[i].Key) return i; return -1; }