public void Remove(UndoBlock item) { int index = IndexOf(item); if (index < 0) throw new ArgumentException( "Cannot remove the specified item because it was not found in the specified Collection."); RemoveAt(index); }