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); } }
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); }
public override int GetHashCode() { return(StateId.GetHashCode() ^ StateName.GetHashCode()); }