Пример #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.TransportDetails_Group newObject = new DESADV_XSDLib.TransportDetails_Group(_elementName);
            newObject.m_CarrierName         = m_CarrierName;
            newObject.m_IsValidCarrierName  = m_IsValidCarrierName;
            newObject.m_VehicleType         = m_VehicleType;
            newObject.m_IsValidVehicleType  = m_IsValidVehicleType;
            newObject.m_LicencePlate        = m_LicencePlate;
            newObject.m_IsValidLicencePlate = m_IsValidLicencePlate;

            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.TransportDetails_Group newObject = new DESADV_XSDLib.TransportDetails_Group(_elementName);
            newObject.m_CarrierName = m_CarrierName;
            newObject.m_IsValidCarrierName = m_IsValidCarrierName;
            newObject.m_VehicleType = m_VehicleType;
            newObject.m_IsValidVehicleType = m_IsValidVehicleType;
            newObject.m_LicencePlate = m_LicencePlate;
            newObject.m_IsValidLicencePlate = m_IsValidLicencePlate;

            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;
        }