Ejemplo n.º 1
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            hashcode = (hashcode * 397) + IdAlbum.GetHashCode();
            if (__isset.title)
            {
                hashcode = (hashcode * 397) + Title.GetHashCode();
            }
            if (__isset.coverPath)
            {
                hashcode = (hashcode * 397) + CoverPath.GetHashCode();
            }
            if (__isset.releaseDate)
            {
                hashcode = (hashcode * 397) + ReleaseDate.GetHashCode();
            }
            if (__isset.gender)
            {
                hashcode = (hashcode * 397) + Gender.GetHashCode();
            }
            if (__isset.isSingle)
            {
                hashcode = (hashcode * 397) + IsSingle.GetHashCode();
            }
        }
        return(hashcode);
    }
Ejemplo n.º 2
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (Id != null)
         {
             hashCode = hashCode * 59 + Id.GetHashCode();
         }
         if (Name != null)
         {
             hashCode = hashCode * 59 + Name.GetHashCode();
         }
         if (ReleaseDate != null)
         {
             hashCode = hashCode * 59 + ReleaseDate.GetHashCode();
         }
         if (Manufacturer != null)
         {
             hashCode = hashCode * 59 + Manufacturer.GetHashCode();
         }
         return(hashCode);
     }
 }
        public override int GetHashCode()
        {
            int hash = 1;

            if (ImageVersionId.Length != 0)
            {
                hash ^= ImageVersionId.GetHashCode();
            }
            if (IsDefault != false)
            {
                hash ^= IsDefault.GetHashCode();
            }
            hash ^= supportedPythonVersions_.GetHashCode();
            if (releaseDate_ != null)
            {
                hash ^= ReleaseDate.GetHashCode();
            }
            if (CreationDisabled != false)
            {
                hash ^= CreationDisabled.GetHashCode();
            }
            if (UpgradeDisabled != false)
            {
                hash ^= UpgradeDisabled.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 4
0
        /** <inheritDoc /> */
        public override int GetHashCode()
        {
            int res = Major;

            res = 31 * res + Minor;
            res = 31 * res + Maintenance;
            res = 31 * res + ReleaseDate.GetHashCode();

            return(res);
        }
Ejemplo n.º 5
0
 public override int GetHashCode()
 {
     unchecked {
         int hashCode = (ISBN != null ? ISBN.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ PublisherId;
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ReleaseDate.GetHashCode();
         hashCode = (hashCode * 397) ^ (AgeRestriction != null ? AgeRestriction.GetHashCode() : 0);
         return(hashCode);
     }
 }
Ejemplo n.º 6
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = ReleaseDate.GetHashCode();
         result = (result * 397) ^ (ReleaseNumber != null ? ReleaseNumber.GetHashCode() : 0);
         result = (result * 397) ^ (ReleaseFiInstructions != null ? ReleaseFiInstructions.GetHashCode() : 0);
         result = (result * 397) ^ (TeamName != null ? TeamName.GetHashCode() : 0);
         result = (result * 397) ^ (ServiceNowTicketLink != null ? ServiceNowTicketLink.GetHashCode() : 0);
         result = (result * 397) ^ (PrePatEmailFileInfo != null ? PrePatEmailFileInfo.GetHashCode() : 0);
         return(result);
     }
 }
Ejemplo n.º 7
0
 /// <summary>Serves as a hash function for a particular type.</summary>
 /// <returns>A hash code for the current <see cref="T:System.Object" />.</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         int result = (Id != null ? Id.GetHashCode() : 0);
         result = (result * 397) ^ (Title != null ? Title.GetHashCode() : 0);
         result = (result * 397) ^ Rating.GetHashCode();
         result = (result * 397) ^ (Director != null ? Director.GetHashCode() : 0);
         result = (result * 397) ^ ReleaseDate.GetHashCode();
         result = (result * 397) ^ (TagLine != null ? TagLine.GetHashCode() : 0);
         result = (result * 397) ^ (Genres != null ? Genres.GetHashCode() : 0);
         return(result);
     }
 }
Ejemplo n.º 8
0
        public override int GetHashCode()
        {
            var hashCode = 536060548;

            hashCode = hashCode * -1521134295 + base.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Title);

            hashCode = hashCode * -1521134295 + ReleaseDate.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <Guid> .Default.GetHashCode(AuthorId);

            hashCode = hashCode * -1521134295 + EqualityComparer <AuthorEntity> .Default.GetHashCode(Author);

            return(hashCode);
        }
Ejemplo n.º 9
0
        public override int GetHashCode()
        {
            var hashCode = 942074158;

            hashCode = (hashCode * -1611243274) + EqualityComparer <string> .Default.GetHashCode(ThumbnailUrl);

            hashCode = (hashCode * -1611243274) + EqualityComparer <string> .Default.GetHashCode(FullImage);

            hashCode = (hashCode * -1611243274) + EqualityComparer <string> .Default.GetHashCode(Review);

            hashCode = (hashCode * -1611243274) + ReleaseDate.GetHashCode();
            hashCode = (hashCode * -1611243274) + Id.GetHashCode();
            hashCode = (hashCode * -1611243274) + EqualityComparer <string> .Default.GetHashCode(Title);

            return(hashCode);
        }
Ejemplo n.º 10
0
        /// <inheritdoc />
        public override int GetHashCode()
        {
            var hashCode = 745094178;

            hashCode = (hashCode * -1521134295) + EqualityComparer <string> .Default.GetHashCode(PosterSmall);

            hashCode = (hashCode * -1521134295) + EqualityComparer <string> .Default.GetHashCode(PosterBig);

            hashCode = (hashCode * -1521134295) + EqualityComparer <string> .Default.GetHashCode(Overview);

            hashCode = (hashCode * -1521134295) + ReleaseDate.GetHashCode();
            hashCode = (hashCode * -1521134295) + Id.GetHashCode();
            hashCode = (hashCode * -1521134295) + EqualityComparer <string> .Default.GetHashCode(Title);

            return(hashCode);
        }
Ejemplo n.º 11
0
        public override int GetHashCode()
        {
            int hash = 17;

            hash = hash * 23 + Id.GetHashCode();
            hash = hash * 23 + Name.GetHashCode();
            hash = hash * 23 + Authors.GetHashCode();
            hash = hash * 23 + NumberOfPages.GetHashCode();
            hash = hash * 23 + Publisher.GetHashCode();
            hash = hash * 23 + MediaType.GetHashCode();
            hash = hash * 23 + Country.GetHashCode();
            hash = hash * 23 + ReleaseDate.GetHashCode();
            hash = hash * 23 + PrecededBy.GetHashCode();
            hash = hash * 23 + FollowedBy.GetHashCode();

            return(hash);
        }
Ejemplo n.º 12
0
        public override int GetHashCode()
        {
            var hashCode = 1013002190;

            hashCode = hashCode * -1521134295 + Id.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(LocalUrl);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Name);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Description);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Type);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(AuthorName);

            hashCode = hashCode * -1521134295 + ReleaseDate.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Album);

            hashCode = hashCode * -1521134295 + Duraction.GetHashCode();
            hashCode = hashCode * -1521134295 + NumberOfPlays.GetHashCode();
            return(hashCode);
        }
Ejemplo n.º 13
0
        public override int GetHashCode()
        {
            var hashCode = 701007377;

            hashCode = hashCode * -1521134295 + GuestRequestKey.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <Guest> .Default.GetHashCode(GuestPersonalDetails);

            hashCode = hashCode * -1521134295 + Status.GetHashCode();
            hashCode = hashCode * -1521134295 + RegistrationDate.GetHashCode();
            hashCode = hashCode * -1521134295 + EntryDate.GetHashCode();
            hashCode = hashCode * -1521134295 + ReleaseDate.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <List <AreaTypes> > .Default.GetHashCode(Areas);

            hashCode = hashCode * -1521134295 + EqualityComparer <List <string> > .Default.GetHashCode(SunbAreas);

            hashCode = hashCode * -1521134295 + Type.GetHashCode();
            hashCode = hashCode * -1521134295 + Adults.GetHashCode();
            hashCode = hashCode * -1521134295 + Children.GetHashCode();
            hashCode = hashCode * -1521134295 + Pool.GetHashCode();
            hashCode = hashCode * -1521134295 + HotTub.GetHashCode();
            hashCode = hashCode * -1521134295 + Garden.GetHashCode();
            hashCode = hashCode * -1521134295 + ChildrenAttractions.GetHashCode();
            return(hashCode);
        }