Beispiel #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((Winner != null ? Winner.GetHashCode() : 0) * 397) ^ (Loser != null ? Loser.GetHashCode() : 0));
     }
 }
Beispiel #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Winner != null ? Winner.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Loser != null ? Loser.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Time.GetHashCode();
         return(hashCode);
     }
 }
        public override int GetHashCode()
        {
            int hash = 1;

            hash ^= player_.GetHashCode();
            hash ^= map_.GetHashCode();
            if (CurrentPlayer != 0)
            {
                hash ^= CurrentPlayer.GetHashCode();
            }
            if (HasWinner)
            {
                hash ^= Winner.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }