public override IEnumerable <SongMeaningsNode> GetChildren() { bool onFirstPageOfSearch = true; foreach (String pageOfArtists in GetArtistListTextForAllPagesInThisDirectory()) { foreach (SongMeaningsArtist artist in GetArtistsFromText(pageOfArtists, onFirstPageOfSearch)) // Only tries to resume from previous progress if on first page of search { ArtistNode artistNode = new ArtistNode(artist); lastArtistProcessed = artist; yield return(artistNode); } onFirstPageOfSearch = false; } }
public override IEnumerable<SongMeaningsNode> GetChildren() { bool onFirstPageOfSearch = true; foreach (String pageOfArtists in GetArtistListTextForAllPagesInThisDirectory()) { foreach (SongMeaningsArtist artist in GetArtistsFromText(pageOfArtists, onFirstPageOfSearch)) // Only tries to resume from previous progress if on first page of search { ArtistNode artistNode = new ArtistNode(artist); lastArtistProcessed = artist; yield return artistNode; } onFirstPageOfSearch = false; } }