Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked {
         const int randomPrime = 397;
         int       hashCode    = Id.GetHashCode();
         hashCode = (hashCode * randomPrime) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * randomPrime) ^ StateId.GetHashCode();
         return(hashCode);
     }
 }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (StateId != 0L)
            {
                hash ^= StateId.GetHashCode();
            }
            hash ^= BoardNames.GetHashCode();
            hash ^= PlayerNames.GetHashCode();
            hash ^= MonsterNames.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 3
0
 public override int GetHashCode()
 {
     return(StateId.GetHashCode() ^ StateName.GetHashCode());
 }