/// <summary> /// Removes all items from the ICollection<T>. /// </summary> public void Clear() { _keyToIndex.Clear(); _masterList.Clear(); _lastNode = null; }