public bool MoveNext() { if (!_seekNeeded) { _pos++; } if (_keyValueTr.CursorMovedCounter != _prevProtectionCounter) { _modificationCounter.CheckModifiedDuringEnum(_prevModificationCounter); } var ret = Seek(); _prevProtectionCounter = _keyValueTr.CursorMovedCounter; return(ret); }
public bool MoveNext() { if (!_seekNeeded) { _pos++; } _keyValueTrProtector.Start(); if (_keyValueTrProtector.WasInterupted(_prevProtectionCounter)) { _modificationCounter.CheckModifiedDuringEnum(_prevModificationCounter); _keyValueTr.SetKeyPrefix(KeyBytes); } var ret = Seek(); _prevProtectionCounter = _keyValueTrProtector.ProtectionCounter; return(ret); }