Exemplo n.º 1
0
        public static LanguageDocument FromDictionary(ResourceDictionary dictionary)
        {
            var document = new LanguageDocument();

            foreach (var key in dictionary.Keys)
            {
                document.LanguageEntries.First(x => x.Key == key.ToString()).Value = dictionary[key].ToString();
            }

            return(document);
        }
        public static LanguageDocument FromDictionary(ResourceDictionary dictionary)
        {
            var document = new LanguageDocument();

            foreach (var key in dictionary.Keys)
            {
                document.LanguageEntries.First(x => x.Key == key.ToString()).Value = dictionary[key].ToString();
            }

            return document;
        }