Пример #1
0
        public override int GetHashCode()
        {
            var hashCode = 2076266859;

            hashCode = hashCode * -1521134295 + Lane.GetHashCode();
            hashCode = hashCode * -1521134295 + Tick.GetHashCode();
            return(hashCode);
        }
Пример #2
0
        ///<inheritdoc/>
        public override int GetHashCode()
        {
            int hash = 17;

            // Overflow is fine, just wrap
            unchecked
            {
                hash = (hash * 29) + MinefieldType.GetHashCode();
                hash = (hash * 29) + ActiveStatus.GetHashCode();
                hash = (hash * 29) + Lane.GetHashCode();
                hash = (hash * 29) + State.GetHashCode();
            }

            return(hash);
        }