/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; // Suitable nullity checks etc, of course :) hashCode = hashCode * 59 + Cost.GetHashCode(); if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } hashCode = hashCode * 59 + Permanent.GetHashCode(); if (Description != null) { hashCode = hashCode * 59 + Description.GetHashCode(); } hashCode = hashCode * 59 + Rounds.GetHashCode(); if (Values != null) { hashCode = hashCode * 59 + Values.GetHashCode(); } hashCode = hashCode * 59 + Type.GetHashCode(); hashCode = hashCode * 59 + Id.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { int result = Holecards != null?Holecards.GetHashCode() : 0; result = (result * 397) ^ SeatNumber; result = (result * 397) ^ (Name != null ? Name.GetHashCode() : 0); result = (result * 397) ^ Id.GetHashCode(); result = (result * 397) ^ Position; result = (result * 397) ^ (Rounds != null ? Rounds.GetHashCode() : 0); return(result); }
public override int GetHashCode() { unchecked { int hash = 19; int mult = 13; hash = hash * mult + Outcome.GetHashCode(); hash = hash * mult + Rounds.GetHashCode(); hash = hash * mult + ResultType.GetHashCode(); return(hash); } }
/// <summary> /// Returns a hash code for this instance. /// </summary> /// <returns>A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.</returns> public override int GetHashCode() { unchecked { var hashCode = (Game != null ? Game.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Rounds != null ? Rounds.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (LastRound != null ? LastRound.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Team1WinsCount; hashCode = (hashCode * 397) ^ Team2WinsCount; hashCode = (hashCode * 397) ^ DrawsCount; return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = Time.GetHashCode(); hashCode = (hashCode * 397) ^ Index; hashCode = (hashCode * 397) ^ LapTime.GetHashCode(); hashCode = (hashCode * 397) ^ Rounds.GetHashCode(); hashCode = (hashCode * 397) ^ RoundsToGo.GetHashCode(); hashCode = (hashCode * 397) ^ PassedLength; hashCode = (hashCode * 397) ^ Ranking.GetHashCode(); return(hashCode); } }
/// <summary> /// Generated override. /// </summary> /// <returns></returns> public override int GetHashCode() { return(-1930869704 + Rounds.GetHashCode()); }