/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (Address != null) { hashCode = hashCode * 59 + Address.GetHashCode(); } if (ChannelCode != null) { hashCode = hashCode * 59 + ChannelCode.GetHashCode(); } if (Description != null) { hashCode = hashCode * 59 + Description.GetHashCode(); } if (Geocode != null) { hashCode = hashCode * 59 + Geocode.GetHashCode(); } if (Id != null) { hashCode = hashCode * 59 + Id.GetHashCode(); } if (InvoiceNumber != null) { hashCode = hashCode * 59 + InvoiceNumber.GetHashCode(); } if (Mcc != null) { hashCode = hashCode * 59 + Mcc.GetHashCode(); } if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (Type != null) { hashCode = hashCode * 59 + Type.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { int hashCode = -255518735; if (Id != null) { hashCode += Id.GetHashCode(); } if (Name != null) { hashCode += Name.GetHashCode(); } if (Address != null) { hashCode += Address.GetHashCode(); } if (Timezone != null) { hashCode += Timezone.GetHashCode(); } if (Capabilities != null) { hashCode += Capabilities.GetHashCode(); } if (Status != null) { hashCode += Status.GetHashCode(); } if (CreatedAt != null) { hashCode += CreatedAt.GetHashCode(); } if (MerchantId != null) { hashCode += MerchantId.GetHashCode(); } if (Country != null) { hashCode += Country.GetHashCode(); } if (LanguageCode != null) { hashCode += LanguageCode.GetHashCode(); } if (Currency != null) { hashCode += Currency.GetHashCode(); } if (PhoneNumber != null) { hashCode += PhoneNumber.GetHashCode(); } if (BusinessName != null) { hashCode += BusinessName.GetHashCode(); } if (Type != null) { hashCode += Type.GetHashCode(); } if (WebsiteUrl != null) { hashCode += WebsiteUrl.GetHashCode(); } if (BusinessHours != null) { hashCode += BusinessHours.GetHashCode(); } if (BusinessEmail != null) { hashCode += BusinessEmail.GetHashCode(); } if (Description != null) { hashCode += Description.GetHashCode(); } if (TwitterUsername != null) { hashCode += TwitterUsername.GetHashCode(); } if (InstagramUsername != null) { hashCode += InstagramUsername.GetHashCode(); } if (FacebookUrl != null) { hashCode += FacebookUrl.GetHashCode(); } if (Coordinates != null) { hashCode += Coordinates.GetHashCode(); } if (LogoUrl != null) { hashCode += LogoUrl.GetHashCode(); } if (PosBackgroundUrl != null) { hashCode += PosBackgroundUrl.GetHashCode(); } if (Mcc != null) { hashCode += Mcc.GetHashCode(); } if (FullFormatLogoUrl != null) { hashCode += FullFormatLogoUrl.GetHashCode(); } return(hashCode); }