public void RemoveByKey(string key) { for (int i = 0; i < _items.Count; i++) { if (key == _items[i].Key) { _items.RemoveAt(i); return; } } }