text: public virtual void remove(){if (this.lastPosition == -1){throw new System.InvalidOperationException();}if (this.expectedModCount != this._enclosing.modCount){throw new java.util.ConcurrentModificationException();}try{this._enclosing.remove(this.lastPosition);}catch (System.IndexOutOfRangeException){throw new java.util.ConcurrentModificationException();}this.expectedModCount = this._enclosing.modCount;if (this.pos == this.lastPosition){this.pos--;}this.lastPosition = -1;}