/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { int hash = 41; // Suitable nullity checks hash = hash * 59 + Id.GetHashCode(); if (EquipmentType != null) { hash = hash * 59 + EquipmentType.GetHashCode(); } if (District != null) { hash = hash * 59 + District.GetHashCode(); } if (DistrictEquipmentName != null) { hash = hash * 59 + DistrictEquipmentName.GetHashCode(); } return(hash); } }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { int hash = 41; // Suitable nullity checks hash = hash * 59 + Id.GetHashCode(); hash = hash * 59 + User.GetHashCode(); hash = hash * 59 + District.GetHashCode(); hash = hash * 59 + IsPrimary.GetHashCode(); return(hash); } }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { int hash = 41; // Suitable nullity checks hash = hash * 59 + Id.GetHashCode(); if (District != null) { hash = hash * 59 + District.GetHashCode(); } hash = hash * 59 + ConditionTypeCode.GetHashCode(); hash = hash * 59 + Description.GetHashCode(); hash = hash * 59 + Active.GetHashCode(); return(hash); } }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { int hash = 41; // Suitable nullity checks hash = hash * 59 + Id.GetHashCode(); hash = hash * 59 + MinistryServiceAreaID.GetHashCode(); if (Name != null) { hash = hash * 59 + Name.GetHashCode(); } if (District != null) { hash = hash * 59 + District.GetHashCode(); } hash = hash * 59 + StartDate.GetHashCode(); if (AreaNumber != null) { hash = hash * 59 + AreaNumber.GetHashCode(); } if (EndDate != null) { hash = hash * 59 + EndDate.GetHashCode(); } return(hash); } }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { int hash = 41; // Suitable nullity checks hash = hash * 59 + Id.GetHashCode(); if (GivenName != null) { hash = hash * 59 + GivenName.GetHashCode(); } if (Surname != null) { hash = hash * 59 + Surname.GetHashCode(); } hash = hash * 59 + Active.GetHashCode(); if (Initials != null) { hash = hash * 59 + Initials.GetHashCode(); } if (Email != null) { hash = hash * 59 + Email.GetHashCode(); } if (SmUserId != null) { hash = hash * 59 + SmUserId.GetHashCode(); } if (Guid != null) { hash = hash * 59 + Guid.GetHashCode(); } if (SmAuthorizationDirectory != null) { hash = hash * 59 + SmAuthorizationDirectory.GetHashCode(); } if (UserRoles != null) { hash = hash * 59 + UserRoles.GetHashCode(); } if (District != null) { hash = hash * 59 + District.GetHashCode(); } if (UserDistricts != null) { hash = hash * 59 + UserDistricts.GetHashCode(); } return(hash); } }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { int hash = 41; // Suitable nullity checks hash = hash * 59 + Id.GetHashCode(); if (District != null) { hash = hash * 59 + District.GetHashCode(); } if (Name != null) { hash = hash * 59 + Name.GetHashCode(); } if (Status != null) { hash = hash * 59 + Status.GetHashCode(); } if (ProvincialProjectNumber != null) { hash = hash * 59 + ProvincialProjectNumber.GetHashCode(); } if (Information != null) { hash = hash * 59 + Information.GetHashCode(); } if (RentalRequests != null) { hash = hash * 59 + RentalRequests.GetHashCode(); } if (RentalAgreements != null) { hash = hash * 59 + RentalAgreements.GetHashCode(); } if (PrimaryContact != null) { hash = hash * 59 + PrimaryContact.GetHashCode(); } if (Contacts != null) { hash = hash * 59 + Contacts.GetHashCode(); } if (Notes != null) { hash = hash * 59 + Notes.GetHashCode(); } if (Attachments != null) { hash = hash * 59 + Attachments.GetHashCode(); } if (History != null) { hash = hash * 59 + History.GetHashCode(); } return(hash); } }