/// <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 (Agent != null) { hashCode = hashCode * 59 + Agent.GetHashCode(); } if (Id != null) { hashCode = hashCode * 59 + Id.GetHashCode(); } if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (UserId != null) { hashCode = hashCode * 59 + UserId.GetHashCode(); } if (CreatedAt != null) { hashCode = hashCode * 59 + CreatedAt.GetHashCode(); } if (LegacyProfile != null) { hashCode = hashCode * 59 + LegacyProfile.GetHashCode(); } if (Suspended != null) { hashCode = hashCode * 59 + Suspended.GetHashCode(); } if (Paid != null) { hashCode = hashCode * 59 + Paid.GetHashCode(); } if (Migrated != null) { hashCode = hashCode * 59 + Migrated.GetHashCode(); } if (Legacy != null) { hashCode = hashCode * 59 + Legacy.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (DisplayName.Length != 0) { hash ^= DisplayName.GetHashCode(); } if (ExternalId.Length != 0) { hash ^= ExternalId.GetHashCode(); } if (Size != 0) { hash ^= Size.GetHashCode(); } if (HeadquartersAddress.Length != 0) { hash ^= HeadquartersAddress.GetHashCode(); } if (HiringAgency != false) { hash ^= HiringAgency.GetHashCode(); } if (EeoText.Length != 0) { hash ^= EeoText.GetHashCode(); } if (WebsiteUri.Length != 0) { hash ^= WebsiteUri.GetHashCode(); } if (CareerSiteUri.Length != 0) { hash ^= CareerSiteUri.GetHashCode(); } if (ImageUri.Length != 0) { hash ^= ImageUri.GetHashCode(); } hash ^= keywordSearchableJobCustomAttributes_.GetHashCode(); if (derivedInfo_ != null) { hash ^= DerivedInfo.GetHashCode(); } if (Suspended != false) { hash ^= Suspended.GetHashCode(); } if (LearningType != 0) { hash ^= LearningType.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }