Example #1
0
        public override int GetHashCode()
        {
            var hashCode = 1843543038;

            hashCode = hashCode * -1521134295 + EqualityComparer <List <GoalField> > .Default.GetHashCode(Goals);

            hashCode = hashCode * -1521134295 + ShamProbability.GetHashCode();
            hashCode = hashCode * -1521134295 + PlacingNewPiecesFrequency.GetHashCode();
            hashCode = hashCode * -1521134295 + InitialNumberOfPieces.GetHashCode();
            hashCode = hashCode * -1521134295 + BoardWidth.GetHashCode();
            hashCode = hashCode * -1521134295 + TaskAreaLength.GetHashCode();
            hashCode = hashCode * -1521134295 + GoalAreaLength.GetHashCode();
            hashCode = hashCode * -1521134295 + NumberOfPlayersPerTeam.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(GameName);

            return(hashCode);
        }
Example #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (BoardWidth != 0)
            {
                hash ^= BoardWidth.GetHashCode();
            }
            if (BoardHeight != 0)
            {
                hash ^= BoardHeight.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }