예제 #1
0
 private static bool isNull(Word item)
 {
     if (item == null)
     { return true; }
     else
     { return false; }
 }
예제 #2
0
 // find all common verses amoung word list
 private List<Verse> compareVerses(List<Word> wordList)
 {
     if (wordList.Count > 1)
     {
         Word twoCombinedWords = new Word();
         foreach(Verse item in wordList[0].GetVerses())
         {
             if(  getVerse(item).Contains(wordList[1].GetWord()))
             {
                 twoCombinedWords.AddVerse(item);
             }
         }
         wordList[0] = twoCombinedWords;
         wordList.RemoveAt(1);
         return compareVerses(wordList);
     }
     else
     {
         return wordList[0].GetVerses();
     }
 }
예제 #3
0
 public bool TryGetValue(string word, out Word Word)
 {
     return _bibleIndex.TryGetValue(word, out Word);
 }