public static SuggestionHashTable Load(StreamReader stream) { var wordCount = Convert.ToInt32(stream.ReadLine()); var words = new SuggestionHashTable(); for (var i = 0; i < wordCount; i++) { var word = Map(stream.ReadLine()); words.Add(word); } return(words); }
public SuggestionService(SuggestionHashTable hashTable) { _hashTable = hashTable; }