public override int GetHashCode() { unchecked { const int hashBase = (int)2166136261; const int multiplier = 16777619; int hash = hashBase; hash = (hash * multiplier) ^ Uln.GetHashCode(); hash = (hash * multiplier) ^ (Standard is null ? 0 : Standard.GetHashCode()); hash = (hash * multiplier) ^ (FamilyName is null ? 0 : FamilyName.GetHashCode()); return(hash); } }
public override int GetHashCode() { unchecked { const int hashBase = (int)2166136261; const int multiplier = 16777619; int hash = hashBase; hash = (hash * multiplier) ^ (Standard is null ? 0 : Standard.GetHashCode()); hash = (hash * multiplier) ^ (Learner is null ? 0 : Learner.GetHashCode()); hash = (hash * multiplier) ^ (LearningDetails is null ? 0 : LearningDetails.GetHashCode()); hash = (hash * multiplier) ^ (PostalContact is null ? 0 : PostalContact.GetHashCode()); return(hash); } }
public override int GetHashCode() { unchecked { const int hashBase = (int)2166136261; const int multiplier = 16777619; int hash = hashBase; hash = (hash * multiplier) ^ (EpaReference is null ? 0 : EpaReference.GetHashCode()); hash = (hash * multiplier) ^ (Standard is null ? 0 : Standard.GetHashCode()); hash = (hash * multiplier) ^ (Learner is null ? 0 : Learner.GetHashCode()); hash = (hash * multiplier) ^ (EpaDetails is null ? 0 : EpaDetails.GetHashCode()); return(hash); } }
/// <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 (ExtraLarge != null) { hashCode = hashCode * 59 + ExtraLarge.GetHashCode(); } if (Large != null) { hashCode = hashCode * 59 + Large.GetHashCode(); } if (Standard != null) { hashCode = hashCode * 59 + Standard.GetHashCode(); } if (GridView != null) { hashCode = hashCode * 59 + GridView.GetHashCode(); } if (Small != null) { hashCode = hashCode * 59 + Small.GetHashCode(); } if (Thumbnail != null) { hashCode = hashCode * 59 + Thumbnail.GetHashCode(); } if (ExtraSmall != null) { hashCode = hashCode * 59 + ExtraSmall.GetHashCode(); } return(hashCode); } }
/// <summary> /// Returns a hash code for this instance, which is suitable for use in hashing algorithms and data structures like a hash table. /// </summary> /// <returns>A hash code for the current object.</returns> public override int GetHashCode() { return(HashCode.Combine(m_day.GetHashCode(), m_secondsOfDay.GetHashCode(), Standard.GetHashCode())); }