Пример #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.Document_DespatchAdvice_Group newObject = new DESADV_XSDLib.Document_DespatchAdvice_Group(_elementName);
            newObject.m_DespatchAdvice_Header = null;
            if (m_DespatchAdvice_Header != null)
            {
                newObject.m_DespatchAdvice_Header = (DESADV_XSDLib.DespatchAdvice_Header)m_DespatchAdvice_Header.Clone();
            }
            newObject.m_DespatchAdvice_Transport = null;
            if (m_DespatchAdvice_Transport != null)
            {
                newObject.m_DespatchAdvice_Transport = (DESADV_XSDLib.DespatchAdvice_Transport)m_DespatchAdvice_Transport.Clone();
            }
            newObject.m_DespatchAdvice_Parties = null;
            if (m_DespatchAdvice_Parties != null)
            {
                newObject.m_DespatchAdvice_Parties = (DESADV_XSDLib.DespatchAdvice_Parties)m_DespatchAdvice_Parties.Clone();
            }
            newObject.m_DespatchAdvice_Consignment = null;
            if (m_DespatchAdvice_Consignment != null)
            {
                newObject.m_DespatchAdvice_Consignment = (DESADV_XSDLib.DespatchAdvice_Consignment)m_DespatchAdvice_Consignment.Clone();
            }
            newObject.m_DespatchAdvice_Lines = null;
            if (m_DespatchAdvice_Lines != null)
            {
                newObject.m_DespatchAdvice_Lines = (DESADV_XSDLib.DespatchAdvice_Lines)m_DespatchAdvice_Lines.Clone();
            }
            newObject.m_DespatchAdvice_Summary = null;
            if (m_DespatchAdvice_Summary != null)
            {
                newObject.m_DespatchAdvice_Summary = (DESADV_XSDLib.DespatchAdvice_Summary)m_DespatchAdvice_Summary.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);
        }
Пример #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.Document_DespatchAdvice_Group newObject = new DESADV_XSDLib.Document_DespatchAdvice_Group(_elementName);
            newObject.m_DespatchAdvice_Header = null;
            if (m_DespatchAdvice_Header != null)
                newObject.m_DespatchAdvice_Header = (DESADV_XSDLib.DespatchAdvice_Header)m_DespatchAdvice_Header.Clone();
            newObject.m_DespatchAdvice_Transport = null;
            if (m_DespatchAdvice_Transport != null)
                newObject.m_DespatchAdvice_Transport = (DESADV_XSDLib.DespatchAdvice_Transport)m_DespatchAdvice_Transport.Clone();
            newObject.m_DespatchAdvice_Parties = null;
            if (m_DespatchAdvice_Parties != null)
                newObject.m_DespatchAdvice_Parties = (DESADV_XSDLib.DespatchAdvice_Parties)m_DespatchAdvice_Parties.Clone();
            newObject.m_DespatchAdvice_Consignment = null;
            if (m_DespatchAdvice_Consignment != null)
                newObject.m_DespatchAdvice_Consignment = (DESADV_XSDLib.DespatchAdvice_Consignment)m_DespatchAdvice_Consignment.Clone();
            newObject.m_DespatchAdvice_Lines = null;
            if (m_DespatchAdvice_Lines != null)
                newObject.m_DespatchAdvice_Lines = (DESADV_XSDLib.DespatchAdvice_Lines)m_DespatchAdvice_Lines.Clone();
            newObject.m_DespatchAdvice_Summary = null;
            if (m_DespatchAdvice_Summary != null)
                newObject.m_DespatchAdvice_Summary = (DESADV_XSDLib.DespatchAdvice_Summary)m_DespatchAdvice_Summary.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;
        }