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

            return
                ((
                     OdataEtag == other.OdataEtag ||
                     OdataEtag != null &&
                     OdataEtag.Equals(other.OdataEtag)
                     ) &&
                 (
                     OwneridValue == other.OwneridValue ||
                     OwneridValue != null &&
                     OwneridValue.Equals(other.OwneridValue)
                 ) &&
                 (
                     ProcessidValue == other.ProcessidValue ||
                     ProcessidValue != null &&
                     ProcessidValue.Equals(other.ProcessidValue)
                 ) &&
                 (
                     Owningbusinessunit == other.Owningbusinessunit ||
                     Owningbusinessunit != null &&
                     Owningbusinessunit.Equals(other.Owningbusinessunit)
                 ) &&
                 (
                     Stagename == other.Stagename ||
                     Stagename != null &&
                     Stagename.Equals(other.Stagename)
                 ) &&
                 (
                     Primaryentitytypecode == other.Primaryentitytypecode ||
                     Primaryentitytypecode != null &&
                     Primaryentitytypecode.Equals(other.Primaryentitytypecode)
                 ) &&
                 (
                     Clientdata == other.Clientdata ||
                     Clientdata != null &&
                     Clientdata.SequenceEqual(other.Clientdata)
                 ) &&
                 (
                     Processstageid == other.Processstageid ||
                     Processstageid != null &&
                     Processstageid.Equals(other.Processstageid)
                 ) &&
                 (
                     Stagecategory == other.Stagecategory ||
                     Stagecategory != null &&
                     Stagecategory.Equals(other.Stagecategory)
                 ));
        }
Example #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 (OdataEtag != null)
         {
             hashCode = hashCode * 59 + OdataEtag.GetHashCode();
         }
         if (OwneridValue != null)
         {
             hashCode = hashCode * 59 + OwneridValue.GetHashCode();
         }
         if (ProcessidValue != null)
         {
             hashCode = hashCode * 59 + ProcessidValue.GetHashCode();
         }
         if (Owningbusinessunit != null)
         {
             hashCode = hashCode * 59 + Owningbusinessunit.GetHashCode();
         }
         if (Stagename != null)
         {
             hashCode = hashCode * 59 + Stagename.GetHashCode();
         }
         if (Primaryentitytypecode != null)
         {
             hashCode = hashCode * 59 + Primaryentitytypecode.GetHashCode();
         }
         if (Clientdata != null)
         {
             hashCode = hashCode * 59 + Clientdata.GetHashCode();
         }
         if (Processstageid != null)
         {
             hashCode = hashCode * 59 + Processstageid.GetHashCode();
         }
         if (Stagecategory != null)
         {
             hashCode = hashCode * 59 + Stagecategory.GetHashCode();
         }
         return(hashCode);
     }
 }