Esempio n. 1
0
        public DomAttributes Clone(IDomElement owner)
        {
            DomAttributes clone = new DomAttributes(owner);

            if (HasAttributes)
            {
                foreach (var kvp in Attributes)
                {
                    clone.Attributes.Add(kvp.Key, kvp.Value);
                }
            }
            return(clone);
        }
Esempio n. 2
0
        public DomAttributes Clone()
        {
            DomAttributes clone = new DomAttributes();

            if (HasAttributes)
            {
                //foreach (string kvp in Attributes)
                //{
                //    clone.Attributes.Add(kvp,_Attributes[kvp]);
                //}
                for (int i = 0; i < InnerKeys.Count; i++)
                {
                    clone.InnerKeys.Add(InnerKeys[i]);
                    clone.InnerValues.Add(InnerValues[i]);
                }

                //clone.Attributes.Add(kvp.Key, kvp.Value);
            }
            return(clone);
        }