private static bool isNull(Word item) { if (item == null) { return true; } else { return false; } }
// 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(); } }
public bool TryGetValue(string word, out Word Word) { return _bibleIndex.TryGetValue(word, out Word); }