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