Esempio n. 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Id.GetHashCode();
         hashCode = (hashCode * 397) ^ DateTime.GetHashCode();
         hashCode = (hashCode * 397) ^ (Sport != null ? Sport.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (HomeTeam != null ? HomeTeam.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (AwayTeam != null ? AwayTeam.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Comments != null ? Comments.GetHashCode() : 0);
         return(hashCode);
     }
 }
Esempio n. 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = MatchDay;
         hashCode = (hashCode * 397) ^ DateTime.GetHashCode();
         hashCode = (hashCode * 397) ^ HomeTeamScore;
         hashCode = (hashCode * 397) ^ AwayTeamScore;
         hashCode = (hashCode * 397) ^ (HomeTeam != null ? HomeTeam.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (AwayTeam != null ? AwayTeam.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Season != null ? Season.GetHashCode() : 0);
         return(hashCode);
     }
 }
Esempio n. 3
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 23;
         hash = hash * 37 + PlayDay.GetHashCode();
         hash = hash * 37 + GameId.GetHashCode();
         hash = hash * 37 + SeasonId.GetHashCode();
         hash = hash * 37 + Date.GetHashCode();
         hash = hash * 37 + (HomeTeam != null ? HomeTeam.GetHashCode() : 0);
         hash = hash * 37 + (AwayTeam != null ? AwayTeam.GetHashCode() : 0);
         hash = hash * 37 + (Arena != null ? Arena.GetHashCode() : 0);
         return(hash);
     }
 }