コード例 #1
0
        public override int GetHashCode()
        {
            var hashCode = -334034214;

            hashCode = hashCode * -1521134295 + LocationInfoIndex.GetHashCode();
            hashCode = hashCode * -1521134295 + ItemIndex.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <LocationInfo> .Default.GetHashCode(Location);

            return(hashCode);
        }
コード例 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

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