コード例 #1
0
        /// <summary cref="IEncodeable.IsEqual(IEncodeable)" />
        public virtual bool IsEqual(IEncodeable encodeable)
        {
            if (Object.ReferenceEquals(this, encodeable))
            {
                return(true);
            }

            TimeZoneDataType value = encodeable as TimeZoneDataType;

            if (value == null)
            {
                return(false);
            }

            if (!Utils.IsEqual(m_offset, value.m_offset))
            {
                return(false);
            }
            if (!Utils.IsEqual(m_daylightSavingInOffset, value.m_daylightSavingInOffset))
            {
                return(false);
            }

            return(true);
        }
コード例 #2
0
        /// <summary cref="Object.MemberwiseClone" />
        public new object MemberwiseClone()
        {
            TimeZoneDataType clone = (TimeZoneDataType)base.MemberwiseClone();

            clone.m_offset = (ushort)Utils.Clone(this.m_offset);
            clone.m_daylightSavingInOffset = (bool)Utils.Clone(this.m_daylightSavingInOffset);

            return(clone);
        }