public virtual void RemoveByKey (string key) { int index = IndexOfKey (key); if (index >= 0) RemoveAt (index); }