コード例 #1
0
ファイル: Transport_Group.cs プロジェクト: fazyloff/XSD
        /// <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.Transport_Group newObject = new DESADV_XSDLib.Transport_Group(_elementName);
            newObject.m_LocationName         = m_LocationName;
            newObject.m_IsValidLocationName  = m_IsValidLocationName;
            newObject.m_DepartureDate        = (LiquidTechnologies.Runtime.Net45.XmlDateTime)m_DepartureDate.Clone();
            newObject.m_IsValidDepartureDate = m_IsValidDepartureDate;
            newObject.m_DepartureTime        = (LiquidTechnologies.Runtime.Net45.XmlDateTime)m_DepartureTime.Clone();
            newObject.m_IsValidDepartureTime = m_IsValidDepartureTime;
            newObject.m_ArrivalDate          = (LiquidTechnologies.Runtime.Net45.XmlDateTime)m_ArrivalDate.Clone();
            newObject.m_IsValidArrivalDate   = m_IsValidArrivalDate;
            newObject.m_ArrivalTime          = (LiquidTechnologies.Runtime.Net45.XmlDateTime)m_ArrivalTime.Clone();
            newObject.m_IsValidArrivalTime   = m_IsValidArrivalTime;

            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
ファイル: Transport_Group.cs プロジェクト: fazyloff/XSD
        /// <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.Transport_Group newObject = new DESADV_XSDLib.Transport_Group(_elementName);
            newObject.m_LocationName = m_LocationName;
            newObject.m_IsValidLocationName = m_IsValidLocationName;
            newObject.m_DepartureDate = (LiquidTechnologies.Runtime.Net45.XmlDateTime)m_DepartureDate.Clone();
            newObject.m_IsValidDepartureDate = m_IsValidDepartureDate;
            newObject.m_DepartureTime = (LiquidTechnologies.Runtime.Net45.XmlDateTime)m_DepartureTime.Clone();
            newObject.m_IsValidDepartureTime = m_IsValidDepartureTime;
            newObject.m_ArrivalDate = (LiquidTechnologies.Runtime.Net45.XmlDateTime)m_ArrivalDate.Clone();
            newObject.m_IsValidArrivalDate = m_IsValidArrivalDate;
            newObject.m_ArrivalTime = (LiquidTechnologies.Runtime.Net45.XmlDateTime)m_ArrivalTime.Clone();
            newObject.m_IsValidArrivalTime = m_IsValidArrivalTime;

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