/// <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 (Id != null) { hashCode = hashCode * 59 + Id.GetHashCode(); } if (ResourceState != null) { hashCode = hashCode * 59 + ResourceState.GetHashCode(); } if (Primary != null) { hashCode = hashCode * 59 + Primary.GetHashCode(); } if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (Distance != null) { hashCode = hashCode * 59 + Distance.GetHashCode(); } 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 (ResourceState != null) { hashCode = hashCode * 59 + ResourceState.GetHashCode(); } if (Firstname != null) { hashCode = hashCode * 59 + Firstname.GetHashCode(); } if (Lastname != null) { hashCode = hashCode * 59 + Lastname.GetHashCode(); } if (ProfileMedium != null) { hashCode = hashCode * 59 + ProfileMedium.GetHashCode(); } if (Profile != null) { hashCode = hashCode * 59 + Profile.GetHashCode(); } if (City != null) { hashCode = hashCode * 59 + City.GetHashCode(); } if (State != null) { hashCode = hashCode * 59 + State.GetHashCode(); } if (Country != null) { hashCode = hashCode * 59 + Country.GetHashCode(); } if (Sex != null) { hashCode = hashCode * 59 + Sex.GetHashCode(); } if (Premium != null) { hashCode = hashCode * 59 + Premium.GetHashCode(); } if (Summit != null) { hashCode = hashCode * 59 + Summit.GetHashCode(); } if (CreatedAt != null) { hashCode = hashCode * 59 + CreatedAt.GetHashCode(); } if (UpdatedAt != null) { hashCode = hashCode * 59 + UpdatedAt.GetHashCode(); } return(hashCode); } }