/// <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 (ActiveByDefault != null) { hashCode = hashCode * 59 + ActiveByDefault.GetHashCode(); } if (DefaultMessage != null) { hashCode = hashCode * 59 + DefaultMessage.GetHashCode(); } return(hashCode); } }
/// <summary> /// Returns true if OrgApacheSlingStartupfilterImplStartupFilterImplProperties instances are equal /// </summary> /// <param name="other">Instance of OrgApacheSlingStartupfilterImplStartupFilterImplProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(OrgApacheSlingStartupfilterImplStartupFilterImplProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( ActiveByDefault == other.ActiveByDefault || ActiveByDefault != null && ActiveByDefault.Equals(other.ActiveByDefault) ) && ( DefaultMessage == other.DefaultMessage || DefaultMessage != null && DefaultMessage.Equals(other.DefaultMessage) )); }