Exemple #1
0
        /// <summary>
        /// Returns true if ConfirmBukkenJohoResponse instances are equal
        /// </summary>
        /// <param name="other">Instance of ConfirmBukkenJohoResponse to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ConfirmBukkenJohoResponse other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     ResultCodeList == other.ResultCodeList ||
                     ResultCodeList != null &&
                     other.ResultCodeList != null &&
                     ResultCodeList.SequenceEqual(other.ResultCodeList)
                     ) &&
                 (
                     ConfirmationErrorUmu == other.ConfirmationErrorUmu ||
                     ConfirmationErrorUmu != null &&
                     ConfirmationErrorUmu.Equals(other.ConfirmationErrorUmu)
                 ) &&
                 (
                     SystemErrorUmu == other.SystemErrorUmu ||
                     SystemErrorUmu != null &&
                     SystemErrorUmu.Equals(other.SystemErrorUmu)
                 ));
        }
Exemple #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 (ResultCodeList != null)
         {
             hashCode = hashCode * 59 + ResultCodeList.GetHashCode();
         }
         if (ConfirmationErrorUmu != null)
         {
             hashCode = hashCode * 59 + ConfirmationErrorUmu.GetHashCode();
         }
         if (SystemErrorUmu != null)
         {
             hashCode = hashCode * 59 + SystemErrorUmu.GetHashCode();
         }
         return(hashCode);
     }
 }