public virtual void Set(E e) { if (LastRet < 0) { throw new IllegalStateException(); } CheckForComodification(); try { OuterInstance.Set(LastRet, e); ExpectedModCount = outerInstance.ModCount; } catch (IndexOutOfBoundsException) { throw new ConcurrentModificationException(); } }
public virtual E Set(int index, E element) { RangeCheck(index); CheckForComodification(); return(l.Set(index + Offset, element)); }