Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (EventKey != null ? EventKey.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ StartDate.GetHashCode();
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TournamentKey != null ? TournamentKey.GetHashCode() : 0);
         hashCode = TeamsKeys.Aggregate(hashCode, (ac, x) => (ac * 397) ^ x.GetHashCode());
         hashCode = (hashCode * 397) ^ (Scoreboard != null ? Scoreboard.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Markets != null ? Markets.GetHashCode() : 0);
         return(hashCode);
     }
 }
Ejemplo n.º 2
0
 public override int GetHashCode()
 {
     return(Key.GetHashCode());
 }