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