Exemplo n.º 1
0
        public override Config Clone()
        {
            var ret = new StylesConfig();

            if (Styles != null)
            {
                ret.Styles = new Dictionary <String, List <StyleItemConfig> >(Styles);

                Styles.ForEach(kv => {
                    var list = new List <StyleItemConfig>();
                    kv.Value.ForEach(v => list.Add((StyleItemConfig)v.Clone()));
                    ret.Styles[kv.Key] = list;
                });
            }

            return(ret);
        }
Exemplo n.º 2
0
        public override Config Clone()
        {
            var ret = new StylesConfig();

            if (Styles != null)
            {
                ret.Styles = new Dictionary<String,List<StyleItemConfig>>(Styles);

                Styles.ForEach(kv => {
                    var list = new List<StyleItemConfig>();
                    kv.Value.ForEach(v => list.Add((StyleItemConfig)v.Clone()));
                    ret.Styles[kv.Key] = list;
                });
            }

            return ret;
        }