/// <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_Transport_Group newObject = new DESADV_XSDLib.DespatchAdvice_Transport_Group(_elementName); newObject.m_DeliveryType = m_DeliveryType; newObject.m_IsValidDeliveryType = m_IsValidDeliveryType; newObject.m_DeliveryInstructions = m_DeliveryInstructions; newObject.m_IsValidDeliveryInstructions = m_IsValidDeliveryInstructions; newObject.m_TransportsNumber = m_TransportsNumber; newObject.m_IsValidTransportsNumber = m_IsValidTransportsNumber; newObject.m_TransportationInformation = m_TransportationInformation; newObject.m_IsValidTransportationInformation = m_IsValidTransportationInformation; newObject.m_Transports = null; if (m_Transports != null) { newObject.m_Transports = (DESADV_XSDLib.Transports)m_Transports.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); }
/// <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_Transport_Group newObject = new DESADV_XSDLib.DespatchAdvice_Transport_Group(_elementName); newObject.m_DeliveryType = m_DeliveryType; newObject.m_IsValidDeliveryType = m_IsValidDeliveryType; newObject.m_DeliveryInstructions = m_DeliveryInstructions; newObject.m_IsValidDeliveryInstructions = m_IsValidDeliveryInstructions; newObject.m_TransportsNumber = m_TransportsNumber; newObject.m_IsValidTransportsNumber = m_IsValidTransportsNumber; newObject.m_TransportationInformation = m_TransportationInformation; newObject.m_IsValidTransportationInformation = m_IsValidTransportationInformation; newObject.m_Transports = null; if (m_Transports != null) newObject.m_Transports = (DESADV_XSDLib.Transports)m_Transports.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; }