Esempio n. 1
0
        /// <summary>
        /// Clones this UnsuccessAddress.
        /// </summary>
        /// <returns>The cloned object.</returns>
        public object Clone()
        {
            UnsuccessAddress temp = new UnsuccessAddress(
                _DestinationAddressTon, _DestinationAddressNpi, _DestinationAddress, _ErrorStatusCode);

            return(temp);
        }
Esempio n. 2
0
        /// <summary>
        /// Checks to see if two UnsuccessAddresses are equal.
        /// </summary>
        /// <param name="obj">The UnsuccessAddresses to check</param>
        /// <returns>true if obj and this are equal</returns>
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (this.GetType() != obj.GetType())
            {
                return(false);
            }

            // safe because of the GetType check
            UnsuccessAddress us = (UnsuccessAddress)obj;

            // value member check
            return
                (_DestinationAddressTon.Equals(us._DestinationAddressTon) &&
                 _DestinationAddressNpi.Equals(us._DestinationAddressNpi) &&
                 _DestinationAddress.Equals(us._DestinationAddress) &&
                 _ErrorStatusCode.Equals(us._ErrorStatusCode));
        }