Пример #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Result != 0)
            {
                hash ^= Result.GetHashCode();
            }
            if (lastUpdateTime_ != null)
            {
                hash ^= LastUpdateTime.GetHashCode();
            }
            hash ^= quoteList_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Пример #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 (LastUpdateTime != null)
         {
             hashCode = hashCode * 59 + LastUpdateTime.GetHashCode();
         }
         if (FirstName != null)
         {
             hashCode = hashCode * 59 + FirstName.GetHashCode();
         }
         if (LastName != null)
         {
             hashCode = hashCode * 59 + LastName.GetHashCode();
         }
         if (MiddleNames != null)
         {
             hashCode = hashCode * 59 + MiddleNames.GetHashCode();
         }
         if (Prefix != null)
         {
             hashCode = hashCode * 59 + Prefix.GetHashCode();
         }
         if (Suffix != null)
         {
             hashCode = hashCode * 59 + Suffix.GetHashCode();
         }
         if (OccupationCode != null)
         {
             hashCode = hashCode * 59 + OccupationCode.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 (LastUpdateTime != null)
         {
             hashCode = hashCode * 59 + LastUpdateTime.GetHashCode();
         }
         if (AgentFirstName != null)
         {
             hashCode = hashCode * 59 + AgentFirstName.GetHashCode();
         }
         if (AgentLastName != null)
         {
             hashCode = hashCode * 59 + AgentLastName.GetHashCode();
         }
         if (AgentRole != null)
         {
             hashCode = hashCode * 59 + AgentRole.GetHashCode();
         }
         if (BusinessName != null)
         {
             hashCode = hashCode * 59 + BusinessName.GetHashCode();
         }
         if (LegalName != null)
         {
             hashCode = hashCode * 59 + LegalName.GetHashCode();
         }
         if (ShortName != null)
         {
             hashCode = hashCode * 59 + ShortName.GetHashCode();
         }
         if (Abn != null)
         {
             hashCode = hashCode * 59 + Abn.GetHashCode();
         }
         if (Acn != null)
         {
             hashCode = hashCode * 59 + Acn.GetHashCode();
         }
         if (IsACNCRegistered != null)
         {
             hashCode = hashCode * 59 + IsACNCRegistered.GetHashCode();
         }
         if (IndustryCode != null)
         {
             hashCode = hashCode * 59 + IndustryCode.GetHashCode();
         }
         if (OrganisationType != null)
         {
             hashCode = hashCode * 59 + OrganisationType.GetHashCode();
         }
         if (RegisteredCountry != null)
         {
             hashCode = hashCode * 59 + RegisteredCountry.GetHashCode();
         }
         if (EstablishmentDate != null)
         {
             hashCode = hashCode * 59 + EstablishmentDate.GetHashCode();
         }
         return(hashCode);
     }
 }