コード例 #1
0
        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);
        }
コード例 #2
0
 public SuggestionService(SuggestionHashTable hashTable)
 {
     _hashTable = hashTable;
 }