コード例 #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);
     }
 }
コード例 #2
0
ファイル: Event.cs プロジェクト: ly774508966/tofu3d
 public override int GetHashCode()
 {
     return(Key.GetHashCode());
 }