Exemplo n.º 1
0
        /// <summary>
        /// Deep copy of the path entries, so changes made to the entries of
        /// the original or cloned paths do not affect the other path.
        /// </summary>
        /// <returns></returns>
        public XmlParserPath Clone()
        {
            XmlParserPath clone = new XmlParserPath();

            foreach (var pathEntry in _path)
            {
                clone.Append(pathEntry.Clone());
            }
            return(clone);
        }