/// <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 (FieldWhitelist != null) { hashCode = hashCode * 59 + FieldWhitelist.GetHashCode(); } if (AttachmentTypeBlacklist != null) { hashCode = hashCode * 59 + AttachmentTypeBlacklist.GetHashCode(); } return(hashCode); } }
/// <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 (FieldWhitelist != null) { hashCode = hashCode * 59 + FieldWhitelist.GetHashCode(); } if (SitePathFilters != null) { hashCode = hashCode * 59 + SitePathFilters.GetHashCode(); } if (SitePackageGroup != null) { hashCode = hashCode * 59 + SitePackageGroup.GetHashCode(); } return(hashCode); } }