public void Adjust(Collection.Node Node, AdjustIndexType Type) { if ((Node != null) && !this.mDisposed) { switch (Type) { case AdjustIndexType.Insert: if ((this.mCurrent != null) && (Node == this.mCurrent.m_Next)) { this.mNext = Node; } break; case AdjustIndexType.Remove: if ((Node != this.mCurrent) && (Node == this.mNext)) { this.mNext = this.mNext.m_Next; } break; } } }