Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (ModifiedTimestamp != null ? ModifiedTimestamp.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CreatedIn != null ? CreatedIn.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ModifiedIn != null ? ModifiedIn.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Title != null ? Title.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Language != null ? Language.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CcliIdentifier != null ? CcliIdentifier.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Copyright != null ? Copyright.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ReleaseYear != null ? ReleaseYear.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Authors != null ? Authors.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (RightsManagement != null ? RightsManagement.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Publisher != null ? Publisher.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Version != null ? Version.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Key != null ? Key.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Transposition;
         hashCode = (hashCode * 397) ^ (Tempo != null ? Tempo.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Variant != null ? Variant.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Themes != null ? Themes.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Comment != null ? Comment.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SongBooks != null ? SongBooks.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Parts != null ? Parts.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (PartSequence != null ? PartSequence.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (QualityIssues != null ? QualityIssues.GetHashCode() : 0);
         return(hashCode);
     }
 }
Ejemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Title?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (Authors?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Publisher?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ PublishingYear;
         return(hashCode);
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Returns a hash code for this instance.
 /// </summary>
 /// <returns>
 /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
 /// </returns>
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ Attributes.GetHashCode();
         hashCode = (hashCode * 397) ^ Authors.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)DocType;
         hashCode = (hashCode * 397) ^ (Title?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
Ejemplo n.º 4
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Isbn != null ? Isbn.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Authors != null ? Authors.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (PubCity != null ? PubCity.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (PubName != null ? PubName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ PubYear.GetHashCode();
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Note != null ? Note.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ CountPages;
         return(hashCode);
     }
 }
Ejemplo n.º 5
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);
        }
 /// <summary>
 /// Liefert den Hashcode dieser Instanz.
 /// </summary>
 /// <returns>Der Hashcode der Instanz.</returns>
 public override int GetHashCode()
 {
     return(Title.GetHashCode() ^ ID.GetHashCode() ^ Updated.GetHashCode() ^ Authors.GetHashCode()
            ^ Contributors.GetHashCode() ^ Links.GetHashCode() ^ Categories.GetHashCode()
            ^ Content.GetHashCode() ^ Summary.GetHashCode() ^ Published.GetHashCode());
 }