public void AddComment(TafsirComment comment) { _Comments.Add(comment); FindCommentariesByChapterEntry(chapter: comment.VerseReference.Chapter, createIfNotExists: true).Add(comment); for (int verseIndex = comment.VerseReference.FirstVerse; verseIndex <= comment.VerseReference.LastVerse; verseIndex++) { var verseReference = new VerseReference( chapter: comment.VerseReference.Chapter, verse: verseIndex ); if (CommentsByVerse.ContainsKey(verseReference)) { Console.WriteLine("Duplicate {0} {1}", this.Code, verseReference); } CommentsByVerse[verseReference] = comment; } }
protected virtual void VisitComment(TafsirComment comment) { }