Esempio n. 1
0
        private uDictionary ReadDicitonary(string path)
        {
            uDictionary dictionary = new uDictionary();

            using (StreamReader reader = new StreamReader(path))
            {
                while (!reader.EndOfStream)
                {
                    string   line = reader.ReadLine();
                    string[] pair = line.Split('=');
                    dictionary.Add(pair[0], pair[1]);
                }
            }
            return(dictionary);
        }
Esempio n. 2
0
 public Translator(string path)
 {
     _dictionary = ReadDicitonary(path);
 }