Ejemplo n.º 1
0
        public static void Set(string name)
        {
            var xml = GetXml(name);

            Defaults = (IDictionary <string, object>)_default.Language;
            dynamic temp = new ExpandoObject();

            XmlToDynamic.Parse(temp, XElement.Parse(xml));

            foreach (
                var item in ((IDictionary <string, object>)temp.Language).Where(item => Defaults.ContainsKey(item.Key)))
            {
                Defaults[item.Key] = item.Value;
            }

            Default = Defaults.ToExpando();
        }
Ejemplo n.º 2
0
        private static void SetBaseLang(string name)
        {
            var xml = GetXml(name);

            XmlToDynamic.Parse(_default, XElement.Parse(xml));
        }