Exemplo n.º 1
0
 /// <summary>
 /// Serves as a hash function for a particular type.
 /// </summary>
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked
     {
         return(PackageId.GetHashCode() ^ DeployVersion.GetHashCode());
     }
 }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((PackageId != null ? PackageId.GetHashCode() : 0) * 397) ^ (PackageVersion != null ? PackageVersion.GetHashCode() : 0));
     }
 }
Exemplo n.º 3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (PackageId.Length != 0)
            {
                hash ^= PackageId.GetHashCode();
            }
            if (PackageSize != 0UL)
            {
                hash ^= PackageSize.GetHashCode();
            }
            if (knownSince_ != null)
            {
                hash ^= KnownSince.GetHashCode();
            }
            if (SourceDescription.Length != 0)
            {
                hash ^= SourceDescription.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 4
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = PackageId.GetHashCode();
         hashCode = (hashCode * 397) ^ Version.GetHashCode();
         hashCode = (hashCode * 397) ^ RootFolderPath.GetHashCode();
         return(hashCode);
     }
 }
Exemplo n.º 5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Bookable != false)
            {
                hash ^= Bookable.GetHashCode();
            }
            hash ^= offers_.GetHashCode();
            if (packageId_ != null)
            {
                hash ^= PackageId.GetHashCode();
            }
            if (expiresAt_ != null)
            {
                hash ^= ExpiresAt.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 6
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.productId)
            {
                hashcode = (hashcode * 397) + ProductId.GetHashCode();
            }
            if (__isset.packageId)
            {
                hashcode = (hashcode * 397) + PackageId.GetHashCode();
            }
            if (__isset.version)
            {
                hashcode = (hashcode * 397) + Version.GetHashCode();
            }
            if (__isset.onSale)
            {
                hashcode = (hashcode * 397) + OnSale.GetHashCode();
            }
            if (__isset.validUntil)
            {
                hashcode = (hashcode * 397) + ValidUntil.GetHashCode();
            }
            if (__isset.stickerIdRanges)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(StickerIdRanges);
            }
            if (__isset.grantedByDefault)
            {
                hashcode = (hashcode * 397) + GrantedByDefault.GetHashCode();
            }
            if (__isset.displayOrder)
            {
                hashcode = (hashcode * 397) + DisplayOrder.GetHashCode();
            }
        }
        return(hashcode);
    }
Exemplo n.º 7
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (LedgerId.Length != 0)
            {
                hash ^= LedgerId.GetHashCode();
            }
            if (PackageId.Length != 0)
            {
                hash ^= PackageId.GetHashCode();
            }
            if (traceContext_ != null)
            {
                hash ^= TraceContext.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 8
0
 public override int GetHashCode()
 {
     return(PackageId.GetHashCode());
 }
Exemplo n.º 9
0
 public override int GetHashCode()
 {
     return(AppId.GetHashCode() ^ PackageId.GetHashCode() ^ ContractId.GetHashCode() ^ Description.GetHashCode()
            ^ DisplayName.GetHashCode() ^ Icon.GetHashCode() ^ Vendor.GetHashCode() ^ COMUtilities.GetHashCodeDictionary(CustomProperties)
            ^ Source.GetHashCode());
 }
Exemplo n.º 10
0
 public override int GetHashCode() => PackageId.GetHashCode() *(Framework?.GetHashCode() ?? 1);
Exemplo n.º 11
0
 public override int GetHashCode() => PackageId.GetHashCode() ^ (Version?.GetHashCode() ?? 0);
Exemplo n.º 12
0
 public override int GetHashCode() => PackageId?.GetHashCode() ?? 0;
Exemplo n.º 13
0
 public override int GetHashCode()
 {
     return(PackageId.GetHashCode() * Version.GetHashCode() * (Framework != null ? Framework.GetHashCode() : 1));
 }