コード例 #1
0
 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;
     }
 }
コード例 #2
0
 protected virtual void VisitComment(TafsirComment comment)
 {
 }