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