/// <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.Line_Measurements_Group newObject = new DESADV_XSDLib.Line_Measurements_Group(_elementName); newObject.m_GrossWeight = m_GrossWeight; newObject.m_IsValidGrossWeight = m_IsValidGrossWeight; newObject.m_EstimatedGrossWeight = m_EstimatedGrossWeight; newObject.m_IsValidEstimatedGrossWeight = m_IsValidEstimatedGrossWeight; newObject.m_NetVolume = m_NetVolume; newObject.m_IsValidNetVolume = m_IsValidNetVolume; 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.Line_Measurements_Group newObject = new DESADV_XSDLib.Line_Measurements_Group(_elementName); newObject.m_GrossWeight = m_GrossWeight; newObject.m_IsValidGrossWeight = m_IsValidGrossWeight; newObject.m_EstimatedGrossWeight = m_EstimatedGrossWeight; newObject.m_IsValidEstimatedGrossWeight = m_IsValidEstimatedGrossWeight; newObject.m_NetVolume = m_NetVolume; newObject.m_IsValidNetVolume = m_IsValidNetVolume; 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; }