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

            if (ModifiedTimestampMs != 0L)
            {
                hash ^= ModifiedTimestampMs.GetHashCode();
            }
            if (DeletedItemKey != 0L)
            {
                hash ^= DeletedItemKey.GetHashCode();
            }
            if (inventoryItemData_ != null)
            {
                hash ^= InventoryItemData.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ModifiedTimestamp != 0L)
            {
                hash ^= ModifiedTimestamp.GetHashCode();
            }
            if (inventoryItemCase_ == InventoryItemOneofCase.DeletedItemKey)
            {
                hash ^= DeletedItemKey.GetHashCode();
            }
            if (inventoryItemCase_ == InventoryItemOneofCase.Item)
            {
                hash ^= Item.GetHashCode();
            }
            hash ^= (int)inventoryItemCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }