/// <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 (ManagerRoot != null) { hashCode = hashCode * 59 + ManagerRoot.GetHashCode(); } if (HttpServiceFilter != null) { hashCode = hashCode * 59 + HttpServiceFilter.GetHashCode(); } if (DefaultRender != null) { hashCode = hashCode * 59 + DefaultRender.GetHashCode(); } if (Realm != null) { hashCode = hashCode * 59 + Realm.GetHashCode(); } if (Username != null) { hashCode = hashCode * 59 + Username.GetHashCode(); } if (Password != null) { hashCode = hashCode * 59 + Password.GetHashCode(); } if (Category != null) { hashCode = hashCode * 59 + Category.GetHashCode(); } if (Locale != null) { hashCode = hashCode * 59 + Locale.GetHashCode(); } if (Loglevel != null) { hashCode = hashCode * 59 + Loglevel.GetHashCode(); } if (Plugins != null) { hashCode = hashCode * 59 + Plugins.GetHashCode(); } return(hashCode); } }
/// <summary> /// Returns true if OrgApacheFelixWebconsoleInternalServletOsgiManagerProperties instances are equal /// </summary> /// <param name="other">Instance of OrgApacheFelixWebconsoleInternalServletOsgiManagerProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(OrgApacheFelixWebconsoleInternalServletOsgiManagerProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( ManagerRoot == other.ManagerRoot || ManagerRoot != null && ManagerRoot.Equals(other.ManagerRoot) ) && ( HttpServiceFilter == other.HttpServiceFilter || HttpServiceFilter != null && HttpServiceFilter.Equals(other.HttpServiceFilter) ) && ( DefaultRender == other.DefaultRender || DefaultRender != null && DefaultRender.Equals(other.DefaultRender) ) && ( Realm == other.Realm || Realm != null && Realm.Equals(other.Realm) ) && ( Username == other.Username || Username != null && Username.Equals(other.Username) ) && ( Password == other.Password || Password != null && Password.Equals(other.Password) ) && ( Category == other.Category || Category != null && Category.Equals(other.Category) ) && ( Locale == other.Locale || Locale != null && Locale.Equals(other.Locale) ) && ( Loglevel == other.Loglevel || Loglevel != null && Loglevel.Equals(other.Loglevel) ) && ( Plugins == other.Plugins || Plugins != null && Plugins.Equals(other.Plugins) )); }