예제 #1
0
        /// <summary>
        /// Determines whether the specified object has equal values to this object in all fields.
        /// </summary>
        /// <param name="obj">
        /// The object whose values to compare.
        /// </param>
        /// <returns>
        /// True if the two objects have the same values.
        /// </returns>
        public override bool Equals(object obj)
        {
            PartnerMerchantLocationInfo partnerMerchantLocationInfo = (PartnerMerchantLocationInfo)obj;

            return(PartnerMerchantId == partnerMerchantLocationInfo.PartnerMerchantId &&
                   PartnerMerchantIdType == partnerMerchantLocationInfo.PartnerMerchantIdType &&
                   MerchantTimeZoneId == partnerMerchantLocationInfo.MerchantTimeZoneId);
        }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the class derived from PartnerMerchantLocationInfo, using the fields from the specified other
 /// PartnerMerchantLocationInfo.
 /// </summary>
 /// <param name="partnerMerchantLocationInfo">
 /// The other PartnerMerchantLocationInfo whose fields to copy.
 /// </param>
 internal PartnerMerchantLocationInfo(PartnerMerchantLocationInfo partnerMerchantLocationInfo)
 {
     PartnerMerchantId     = partnerMerchantLocationInfo.PartnerMerchantId;
     PartnerMerchantIdType = partnerMerchantLocationInfo.PartnerMerchantIdType;
     MerchantTimeZoneId    = partnerMerchantLocationInfo.MerchantTimeZoneId;
 }