示例#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);
        }
示例#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;
        }