Exemplo n.º 1
0
        /// <summary>
        /// Allows the class to be copied
        /// </summary>
        /// <remarks>
        /// Performs a 'deep copy' of all the data in the class (and its children)
        /// </remarks>
        public override object Clone()
        {
            DESADV_XSDLib.DespatchAdvice_Parties_Group newObject = new DESADV_XSDLib.DespatchAdvice_Parties_Group(_elementName);
            newObject.m_Buyer = null;
            if (m_Buyer != null)
            {
                newObject.m_Buyer = (DESADV_XSDLib.Buyer)m_Buyer.Clone();
            }
            newObject.m_Seller = null;
            if (m_Seller != null)
            {
                newObject.m_Seller = (DESADV_XSDLib.Seller)m_Seller.Clone();
            }
            newObject.m_DeliveryPoint = null;
            if (m_DeliveryPoint != null)
            {
                newObject.m_DeliveryPoint = (DESADV_XSDLib.DeliveryPoint)m_DeliveryPoint.Clone();
            }
            newObject.m_UltimateCustomer = null;
            if (m_UltimateCustomer != null)
            {
                newObject.m_UltimateCustomer = (DESADV_XSDLib.UltimateCustomer)m_UltimateCustomer.Clone();
            }
            newObject.m_OrderRecipient = null;
            if (m_OrderRecipient != null)
            {
                newObject.m_OrderRecipient = (DESADV_XSDLib.OrderRecipient)m_OrderRecipient.Clone();
            }
            newObject.m_Payer = null;
            if (m_Payer != null)
            {
                newObject.m_Payer = (DESADV_XSDLib.Payer)m_Payer.Clone();
            }
            newObject.m_Consignor = null;
            if (m_Consignor != null)
            {
                newObject.m_Consignor = (DESADV_XSDLib.Consignor)m_Consignor.Clone();
            }
            newObject.m_ShipFrom = null;
            if (m_ShipFrom != null)
            {
                newObject.m_ShipFrom = (DESADV_XSDLib.ShipFrom)m_ShipFrom.Clone();
            }

            newObject._validElement = _validElement;
// ##HAND_CODED_BLOCK_START ID="Additional clone"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS

// Add Additional clone code here...

// ##HAND_CODED_BLOCK_END ID="Additional clone"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS

            return(newObject);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Allows the class to be copied
        /// </summary>
        /// <remarks>
        /// Performs a 'deep copy' of all the data in the class (and its children)
        /// </remarks>
        public override object Clone()
        {
            DESADV_XSDLib.DespatchAdvice_Parties_Group newObject = new DESADV_XSDLib.DespatchAdvice_Parties_Group(_elementName);
            newObject.m_Buyer = null;
            if (m_Buyer != null)
                newObject.m_Buyer = (DESADV_XSDLib.Buyer)m_Buyer.Clone();
            newObject.m_Seller = null;
            if (m_Seller != null)
                newObject.m_Seller = (DESADV_XSDLib.Seller)m_Seller.Clone();
            newObject.m_DeliveryPoint = null;
            if (m_DeliveryPoint != null)
                newObject.m_DeliveryPoint = (DESADV_XSDLib.DeliveryPoint)m_DeliveryPoint.Clone();
            newObject.m_UltimateCustomer = null;
            if (m_UltimateCustomer != null)
                newObject.m_UltimateCustomer = (DESADV_XSDLib.UltimateCustomer)m_UltimateCustomer.Clone();
            newObject.m_OrderRecipient = null;
            if (m_OrderRecipient != null)
                newObject.m_OrderRecipient = (DESADV_XSDLib.OrderRecipient)m_OrderRecipient.Clone();
            newObject.m_Payer = null;
            if (m_Payer != null)
                newObject.m_Payer = (DESADV_XSDLib.Payer)m_Payer.Clone();
            newObject.m_Consignor = null;
            if (m_Consignor != null)
                newObject.m_Consignor = (DESADV_XSDLib.Consignor)m_Consignor.Clone();
            newObject.m_ShipFrom = null;
            if (m_ShipFrom != null)
                newObject.m_ShipFrom = (DESADV_XSDLib.ShipFrom)m_ShipFrom.Clone();

            newObject._validElement = _validElement;
            // ##HAND_CODED_BLOCK_START ID="Additional clone"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS

            // Add Additional clone code here...

            // ##HAND_CODED_BLOCK_END ID="Additional clone"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS

            return newObject;
        }