Example #1
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 (OauthConfigmanagerImsConfigid != null)
         {
             hashCode = hashCode * 59 + OauthConfigmanagerImsConfigid.GetHashCode();
         }
         if (ImsOwningEntity != null)
         {
             hashCode = hashCode * 59 + ImsOwningEntity.GetHashCode();
         }
         if (AemInstanceId != null)
         {
             hashCode = hashCode * 59 + AemInstanceId.GetHashCode();
         }
         if (ImsServiceCode != null)
         {
             hashCode = hashCode * 59 + ImsServiceCode.GetHashCode();
         }
         return(hashCode);
     }
 }
Example #2
0
        /// <summary>
        /// Returns true if ComAdobeGraniteAuthImsImplImsConfigProviderImplProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ComAdobeGraniteAuthImsImplImsConfigProviderImplProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComAdobeGraniteAuthImsImplImsConfigProviderImplProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     OauthConfigmanagerImsConfigid == other.OauthConfigmanagerImsConfigid ||
                     OauthConfigmanagerImsConfigid != null &&
                     OauthConfigmanagerImsConfigid.Equals(other.OauthConfigmanagerImsConfigid)
                     ) &&
                 (
                     ImsOwningEntity == other.ImsOwningEntity ||
                     ImsOwningEntity != null &&
                     ImsOwningEntity.Equals(other.ImsOwningEntity)
                 ) &&
                 (
                     AemInstanceId == other.AemInstanceId ||
                     AemInstanceId != null &&
                     AemInstanceId.Equals(other.AemInstanceId)
                 ) &&
                 (
                     ImsServiceCode == other.ImsServiceCode ||
                     ImsServiceCode != null &&
                     ImsServiceCode.Equals(other.ImsServiceCode)
                 ));
        }