public override int GetHashCode() { int hash = 1; if (AccountPaid != false) { hash ^= AccountPaid.GetHashCode(); } if (CountryId != 0) { hash ^= CountryId.GetHashCode(); } if (BattleTag.Length != 0) { hash ^= BattleTag.GetHashCode(); } if (ManualReview != false) { hash ^= ManualReview.GetHashCode(); } if (identity_ != null) { hash ^= Identity.GetHashCode(); } if (AccountMuted != false) { hash ^= AccountMuted.GetHashCode(); } return(hash); }
/// <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 (CountryId != null) { hashCode = hashCode * 59 + CountryId.GetHashCode(); } if (NewCountryId != null) { hashCode = hashCode * 59 + NewCountryId.GetHashCode(); } if (IsPrimary != null) { hashCode = hashCode * 59 + IsPrimary.GetHashCode(); } if (SessionToken != null) { hashCode = hashCode * 59 + SessionToken.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { var hashCode = -1769064886; hashCode = hashCode * -1521134295 + CountryId.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Name); return(hashCode); }
/// <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 (Nickname != null) { hashCode = hashCode * 59 + Nickname.GetHashCode(); } if (CountryId != null) { hashCode = hashCode * 59 + CountryId.GetHashCode(); } if (Zip != null) { hashCode = hashCode * 59 + Zip.GetHashCode(); } if (City != null) { hashCode = hashCode * 59 + City.GetHashCode(); } if (AdministrativeArea != null) { hashCode = hashCode * 59 + AdministrativeArea.GetHashCode(); } if (DependentLocality != null) { hashCode = hashCode * 59 + DependentLocality.GetHashCode(); } if (SortingCode != null) { hashCode = hashCode * 59 + SortingCode.GetHashCode(); } if (Organization != null) { hashCode = hashCode * 59 + Organization.GetHashCode(); } if (AddressLine1 != null) { hashCode = hashCode * 59 + AddressLine1.GetHashCode(); } if (AddressLine2 != null) { hashCode = hashCode * 59 + AddressLine2.GetHashCode(); } if (IsPrimary != null) { hashCode = hashCode * 59 + IsPrimary.GetHashCode(); } if (SessionToken != null) { hashCode = hashCode * 59 + SessionToken.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { unchecked { const int randomPrime = 397; int hashCode = Id.GetHashCode(); hashCode = (hashCode * randomPrime) ^ (Name != null ? Name.GetHashCode() : 0); hashCode = (hashCode * randomPrime) ^ CountryId.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { var hashCode = -1615181142; hashCode = hashCode * -1521134295 + ProvinceId.GetHashCode(); hashCode = hashCode * -1521134295 + CountryId.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Name); return(hashCode); }
public override int GetHashCode() { unchecked { var hashCode = (Code != null ? Code.GetHashCode() : 0); hashCode = (hashCode * 397) ^ CountryId.GetHashCode(); hashCode = (hashCode * 397) ^ Id.GetHashCode(); hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0); return(hashCode); } }