/// <summary> /// Method to check if the word exists in our wordslist /// </summary> /// <param name="word"></param> /// <returns>bool</returns> public bool Exists(string word) { return(AllWords.Contains(word)); }
public static bool existsInDB(string word) { var exists = AllWords.Contains(word); return(exists); }