Inheritance: System.Xml.XmlElement, IConfigErrorInfo
        public override XmlNode CloneNode(bool deep)
        {
            XmlNode          cloneNode = base.CloneNode(deep);
            ConfigXmlElement clone     = cloneNode as ConfigXmlElement;

            if (clone != null)
            {
                clone._line     = _line;
                clone._filename = _filename;
            }
            return(cloneNode);
        }
Esempio n. 2
0
            // Clone this node.
            public override XmlNode CloneNode(bool deep)
            {
                XmlNode          node  = base.CloneNode(deep);
                ConfigXmlElement cnode = (node as ConfigXmlElement);

                if (cnode != null)
                {
                    cnode.filename = filename;
                    cnode.line     = line;
                }
                return(node);
            }