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