public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ LastChargeAttemptDate.GetHashCode();
         hashCode = (hashCode * 397) ^ RetryDate.GetHashCode();
         hashCode = (hashCode * 397) ^ NumberTimesTried.GetHashCode();
         hashCode = (hashCode * 397) ^ (ShopifyVariantIdNotFound != null ? ShopifyVariantIdNotFound.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ErrorType != null ? ErrorType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Error != null ? Error.GetHashCode() : 0);
         return(hashCode);
     }
 }
        public override int GetHashCode()
        {
            var result = 17;

            unchecked
            {
                result  = result * 37;
                result += Code.GetHashCode();
                result  = result * 37;
                if (Description != null)
                {
                    result += Description.GetHashCode();
                }
                result  = result * 37;
                result += ErrorType.GetHashCode();
            }

            return(result);
        }
 /// <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 (RequestId != null)
         {
             hashCode = hashCode * 59 + RequestId.GetHashCode();
         }
         if (ErrorType != null)
         {
             hashCode = hashCode * 59 + ErrorType.GetHashCode();
         }
         if (ErrorCodes != null)
         {
             hashCode = hashCode * 59 + ErrorCodes.GetHashCode();
         }
         return(hashCode);
     }
 }
Exemple #4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ErrorType.Length != 0)
            {
                hash ^= ErrorType.GetHashCode();
            }
            if (Message.Length != 0)
            {
                hash ^= Message.GetHashCode();
            }
            if (StackTrace.Length != 0)
            {
                hash ^= StackTrace.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }