Ejemplo n.º 1
0
        /// <summary>  Produces a duplicate of this Rule object
        ///
        /// </summary>
        /// <returns> A "deep copy" of this Rule object
        /// </returns>
        public override Rule Copy(FieldMapping newParent)
        {
            XPathRule clone = new XPathRule(fDef);

            if (newParent.fNode != null)
            {
                newParent.fNode.InnerText = fDef;
            }

            return(clone);
        }
Ejemplo n.º 2
0
        /// <summary>  Produces a duplicate of this Rule object
        /// 
        /// </summary>
        /// <returns> A "deep copy" of this Rule object
        /// </returns>
        public override Rule Copy(FieldMapping newParent)
        {
            XPathRule clone = new XPathRule(fDef);
            if (newParent.fNode != null)
            {
                newParent.fNode.InnerText = fDef;
            }

            return clone;
        }