/// <summary> /// Advances the enumerator to the next element of the collection. /// </summary> /// <returns> /// True if the enumerator was successfully advanced to the next /// element; false if the enumerator has passed the end of the /// collection. /// </returns> public override Boolean MoveNext() { if (_Alive) { // Consume the entire pipe! while (_PipeToCap.MoveNext()) { } _Alive = false; _CurrentElement = _PipeToCap.SideEffect; return(true); } else { return(false); } }