public override int GetHashCode() { int hashCode = -1034814; hashCode = hashCode * -1521134295 + Weekday.GetHashCode(); hashCode = hashCode * -1521134295 + NthWeekday.GetHashCode(); return(hashCode); }
/// <summary> /// Return the hash code of this object. /// </summary> /// <returns>The hash code of this object.</returns> public override Int32 GetHashCode() { unchecked { return(Weekday.GetHashCode() * 5 ^ Begin.GetHashCode() * 3 ^ End.GetHashCode()); } }
public virtual int _GetUniqueIdentifier() { var hashCode = 399326290; hashCode = hashCode * -1521134295 + (Id?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (LeadTime?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (Weekday?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (NameOfDay?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (DBWeekday?.GetHashCode() ?? 0); 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 (Weekday != null) { hashCode = hashCode * 59 + Weekday.GetHashCode(); } if (OpeningTime != null) { hashCode = hashCode * 59 + OpeningTime.GetHashCode(); } if (ClosingTime != null) { hashCode = hashCode * 59 + ClosingTime.GetHashCode(); } return(hashCode); } }