Esempio n. 1
0
        public static void Save(VocabDictionary vocabulary, string fileName)
        {
            vocabulary.SynchronizeWords();
            using (XmlTextWriter xw = new XmlTextWriter(fileName, Encoding.UTF8))
            {
                xw.Formatting = Formatting.Indented;

                XmlSerializer serializer = new XmlSerializer(typeof(VocabDictionary));
                serializer.Serialize(xw, vocabulary);
            }
        }
Esempio n. 2
0
 private VocabManager()
 {
     _vocabulary = new VocabDictionary();
 }