/// <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 (Title != null) { hashCode = hashCode * 59 + Title.GetHashCode(); } if (Validity != null) { hashCode = hashCode * 59 + Validity.GetHashCode(); } if (HoursOfWork != null) { hashCode = hashCode * 59 + HoursOfWork.GetHashCode(); } if (DefaultLeaveHours != null) { hashCode = hashCode * 59 + DefaultLeaveHours.GetHashCode(); } if (Restrictions != null) { hashCode = hashCode * 59 + Restrictions.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (Value.Length != 0) { hash ^= Value.GetHashCode(); } if (Signature.Length != 0) { hash ^= Signature.GetHashCode(); } if (ValidityType != 0) { hash ^= ValidityType.GetHashCode(); } if (Validity.Length != 0) { hash ^= Validity.GetHashCode(); } if (Sequence != 0UL) { hash ^= Sequence.GetHashCode(); } if (Ttl != 0UL) { hash ^= Ttl.GetHashCode(); } return(hash); }
public override int GetHashCode() { unchecked { var hashCode = CouponId.GetHashCode(); hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (FriendlyDescription != null ? FriendlyDescription.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Remark != null ? Remark.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Code != null ? Code.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Discount.GetHashCode(); hashCode = (hashCode * 397) ^ (Store != null ? Store.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Category != null ? Category.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Validity.GetHashCode(); hashCode = (hashCode * 397) ^ (CouponLink != null ? CouponLink.GetHashCode() : 0); hashCode = (hashCode * 397) ^ New.GetHashCode(); hashCode = (hashCode * 397) ^ IsPercentage.GetHashCode(); hashCode = (hashCode * 397) ^ Shipping.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 (SkillGroup != null) { hashCode = hashCode * 59 + SkillGroup.GetHashCode(); } if (Cluster != null) { hashCode = hashCode * 59 + Cluster.GetHashCode(); } if (_Skill != null) { hashCode = hashCode * 59 + _Skill.GetHashCode(); } if (Validity != null) { hashCode = hashCode * 59 + Validity.GetHashCode(); } if (DateGained != null) { hashCode = hashCode * 59 + DateGained.GetHashCode(); } if (ObtainedFromReason != null) { hashCode = hashCode * 59 + ObtainedFromReason.GetHashCode(); } if (CertificateNumber != null) { hashCode = hashCode * 59 + CertificateNumber.GetHashCode(); } if (Notes != null) { hashCode = hashCode * 59 + Notes.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 (Validity != null) { hashCode = hashCode * 59 + Validity.GetHashCode(); } if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (Value != null) { hashCode = hashCode * 59 + Value.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 (TempStaffSpeciality != null) { hashCode = hashCode * 59 + TempStaffSpeciality.GetHashCode(); } if (Validity != null) { hashCode = hashCode * 59 + Validity.GetHashCode(); } if (Notes != null) { hashCode = hashCode * 59 + Notes.GetHashCode(); } return(hashCode); } }