private void BeginStoringTo(string sectionName) { _currentSection = _expectedSections.Find(s => s.IsFor(sectionName)); ValidateSectionTransition(sectionName); _highestSectionSoFar = _currentSection.Order; _currentSection.OnBeginSection(); }
private void BeginStoringTo(string sectionName) { this._currentSection = this._expectedSections.Find(s => s.IsFor(sectionName)); this.ValidateSectionTransition(sectionName); this._highestSectionSoFar = this._currentSection.Order; this._currentSection.OnBeginSection(); }