public override int GetHashCode() { int hash = 1; if (Id != 0) { hash ^= Id.GetHashCode(); } if (Team1.Length != 0) { hash ^= Team1.GetHashCode(); } if (Team2.Length != 0) { hash ^= Team2.GetHashCode(); } if (Stage.Length != 0) { hash ^= Stage.GetHashCode(); } if (Tickets != 0) { hash ^= Tickets.GetHashCode(); } if (Price != 0D) { hash ^= Price.GetHashCode(); } return(hash); }
public override int GetHashCode() { unchecked { var hashCode = Id; hashCode = (hashCode * 397) ^ (Team1 != null ? Team1.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Team2 != null ? Team2.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Stage != null ? Stage.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Tickets; return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = Date.GetHashCode(); hashCode = (hashCode * 397) ^ Score1; hashCode = (hashCode * 397) ^ Score2; hashCode = (hashCode * 397) ^ (Team1?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Team2?.GetHashCode() ?? 0); return(hashCode); } }
public override int GetHashCode() { int ret = (Title != null) ? Title.GetHashCode() : 0; ret = (ret * 397) ^ ((EpisodeNumber != null) ? EpisodeNumber.GetHashCode() : 0); ret = (ret * 397) ^ ((EpisodeTitle != null) ? EpisodeTitle.GetHashCode() : 0); ret = (ret * 397) ^ ((Synopsis != null) ? Synopsis.GetHashCode() : 0); ret = (ret * 397) ^ ((Team1 != null) ? Team1.GetHashCode() : 0); ret = (ret * 397) ^ ((Team2 != null) ? Team2.GetHashCode() : 0); ret = (ret * 397) ^ SeriesID.GetHashCode(); ret &= 0x7fffffff; return(ret); }
public override int GetHashCode() { unchecked { var hashCode = Id.GetHashCode(); hashCode = (hashCode * 397) ^ (Team1 != null ? Team1.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Team2 != null ? Team2.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (int)GameState; hashCode = (hashCode * 397) ^ IsComplete.GetHashCode(); hashCode = (hashCode * 397) ^ (WinningTeam != null ? WinningTeam.GetHashCode() : 0); hashCode = (hashCode * 397) ^ IsSimulatedGame.GetHashCode(); hashCode = (hashCode * 397) ^ CreatedDate.GetHashCode(); return(hashCode); } }