Пример #1
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
     {
         return(((Href != null ? Href.GetHashCode() : 0) * 397) ^ (Name != null ? Name.GetHashCode() : 0));
     }
 }
Пример #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 (Description != null)
         {
             hashCode = hashCode * 59 + Description.GetHashCode();
         }
         if (Href != null)
         {
             hashCode = hashCode * 59 + Href.GetHashCode();
         }
         if (Id != null)
         {
             hashCode = hashCode * 59 + Id.GetHashCode();
         }
         if (Name != null)
         {
             hashCode = hashCode * 59 + Name.GetHashCode();
         }
         return(hashCode);
     }
 }
Пример #3
0
        public override Int32 GetHashCode()
        {
            var hashCode = 19;

            hashCode *= (41 * Href.GetHashCode());
            hashCode *= (41 * Name.GetHashCode());

            return(hashCode);
        }
Пример #4
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Rel?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (Href?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Title?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
Пример #5
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Attributes.GetHashCode();
         hashCode = (hashCode * 397) ^ (Href?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Text?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
Пример #6
0
 /// <inheritdoc/>
 public override int GetHashCode()
 {
     unchecked
     {
         int result = base.GetHashCode();
         result = (result * 397) ^ Href?.GetHashCode() ?? 0;
         result = (result * 397) ^ Size.GetHashCode();
         return(result);
     }
 }
Пример #7
0
 public override int GetHashCode()
 {
     unchecked          // Overflow is fine, just wrap
     {
         int hash = 17; // Suitable nullity checks etc, of course :)
         hash = hash * 23 + (Href == null ? 587 : Href.GetHashCode());
         hash = hash * 23 + Rel.GetHashCode();
         hash = hash * 23 + (Description == null ? 587 : Description.GetHashCode());
         return(hash);
     }
 }
 /// <inheritdoc/>
 public override int GetHashCode()
 {
     unchecked
     {
         int result = base.GetHashCode();
         if (Href != null)
         {
             result = (result * 397) ^ Href.GetHashCode();
         }
         result = (result * 397) ^ Size.GetHashCode();
         return(result);
     }
 }
Пример #9
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 (Href != null)
                {
                    hashCode = hashCode * 59 + Href.GetHashCode();
                }

                hashCode = hashCode * 59 + Templated.GetHashCode();
                if (Type != null)
                {
                    hashCode = hashCode * 59 + Type.GetHashCode();
                }
                if (Deprecation != null)
                {
                    hashCode = hashCode * 59 + Deprecation.GetHashCode();
                }
                if (Profile != null)
                {
                    hashCode = hashCode * 59 + Profile.GetHashCode();
                }
                if (Title != null)
                {
                    hashCode = hashCode * 59 + Title.GetHashCode();
                }
                if (Hreflang != null)
                {
                    hashCode = hashCode * 59 + Hreflang.GetHashCode();
                }
                if (Name != null)
                {
                    hashCode = hashCode * 59 + Name.GetHashCode();
                }
                return(hashCode);
            }
        }
 /// <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 (TradingName != null)
         {
             hashCode = hashCode * 59 + TradingName.GetHashCode();
         }
         if (Href != null)
         {
             hashCode = hashCode * 59 + Href.GetHashCode();
         }
         if (IsLegalEntity != null)
         {
             hashCode = hashCode * 59 + IsLegalEntity.GetHashCode();
         }
         if (OrganizationType != null)
         {
             hashCode = hashCode * 59 + OrganizationType.GetHashCode();
         }
         if (NameType != null)
         {
             hashCode = hashCode * 59 + NameType.GetHashCode();
         }
         if (Status != null)
         {
             hashCode = hashCode * 59 + Status.GetHashCode();
         }
         return(hashCode);
     }
 }
 public override int GetHashCode()
 {
     return(Href.GetHashCode() + 29 * Media.GetHashCode());
 }
Пример #12
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 (Title != null)
         {
             hashCode = hashCode * 59 + Title.GetHashCode();
         }
         if (GivenName != null)
         {
             hashCode = hashCode * 59 + GivenName.GetHashCode();
         }
         if (FamilyName != null)
         {
             hashCode = hashCode * 59 + FamilyName.GetHashCode();
         }
         if (MiddleName != null)
         {
             hashCode = hashCode * 59 + MiddleName.GetHashCode();
         }
         if (Href != null)
         {
             hashCode = hashCode * 59 + Href.GetHashCode();
         }
         if (Gender != null)
         {
             hashCode = hashCode * 59 + Gender.GetHashCode();
         }
         if (PlaceOfBirth != null)
         {
             hashCode = hashCode * 59 + PlaceOfBirth.GetHashCode();
         }
         if (CountryOfBirth != null)
         {
             hashCode = hashCode * 59 + CountryOfBirth.GetHashCode();
         }
         if (Nationality != null)
         {
             hashCode = hashCode * 59 + Nationality.GetHashCode();
         }
         if (MaritalStatus != null)
         {
             hashCode = hashCode * 59 + MaritalStatus.GetHashCode();
         }
         if (BirthDate != null)
         {
             hashCode = hashCode * 59 + BirthDate.GetHashCode();
         }
         if (FullName != null)
         {
             hashCode = hashCode * 59 + FullName.GetHashCode();
         }
         if (FormattedName != null)
         {
             hashCode = hashCode * 59 + FormattedName.GetHashCode();
         }
         if (Location != null)
         {
             hashCode = hashCode * 59 + Location.GetHashCode();
         }
         if (Status != null)
         {
             hashCode = hashCode * 59 + Status.GetHashCode();
         }
         return(hashCode);
     }
 }
Пример #13
0
 public override int GetHashCode()
 => Href.GetHashCode();
Пример #14
0
 public override int GetHashCode()
 {
     return(LabelName.GetHashCode() ^ Href.GetHashCode());
 }
Пример #15
0
 /// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     // ReSharper disable once NonReadonlyMemberInGetHashCode
     return(Href?.GetHashCode() ?? string.Empty.GetHashCode());
 }
Пример #16
0
 public override int GetHashCode()
 {
     return(Title.GetHashCode() ^ Href.GetHashCode() ^ Keywords.GetHashCode());
 }
Пример #17
0
 /// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return(Href != null?Href.GetHashCode() : String.Empty.GetHashCode());
 }
Пример #18
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 (Href != null)
         {
             hashCode = hashCode * 59 + Href.GetHashCode();
         }
         if (Id != null)
         {
             hashCode = hashCode * 59 + Id.GetHashCode();
         }
         if (Name != null)
         {
             hashCode = hashCode * 59 + Name.GetHashCode();
         }
         if (Status != null)
         {
             hashCode = hashCode * 59 + Status.GetHashCode();
         }
         if (StatusReason != null)
         {
             hashCode = hashCode * 59 + StatusReason.GetHashCode();
         }
         if (PreferredLanguage != null)
         {
             hashCode = hashCode * 59 + PreferredLanguage.GetHashCode();
         }
         if (ValidFor != null)
         {
             hashCode = hashCode * 59 + ValidFor.GetHashCode();
         }
         if (EngagedParty != null)
         {
             hashCode = hashCode * 59 + EngagedParty.GetHashCode();
         }
         if (PartyRoleType != null)
         {
             hashCode = hashCode * 59 + PartyRoleType.GetHashCode();
         }
         if (Account != null)
         {
             hashCode = hashCode * 59 + Account.GetHashCode();
         }
         if (PaymentMethod != null)
         {
             hashCode = hashCode * 59 + PaymentMethod.GetHashCode();
         }
         if (ContactMedium != null)
         {
             hashCode = hashCode * 59 + ContactMedium.GetHashCode();
         }
         if (Characteristic != null)
         {
             hashCode = hashCode * 59 + Characteristic.GetHashCode();
         }
         if (CreditProfile != null)
         {
             hashCode = hashCode * 59 + CreditProfile.GetHashCode();
         }
         if (Agreement != null)
         {
             hashCode = hashCode * 59 + Agreement.GetHashCode();
         }
         if (RelatedParty != null)
         {
             hashCode = hashCode * 59 + RelatedParty.GetHashCode();
         }
         return(hashCode);
     }
 }