/// <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 (AllowEmpty != null) { hashCode = hashCode * 59 + AllowEmpty.GetHashCode(); } if (AllowHosts != null) { hashCode = hashCode * 59 + AllowHosts.GetHashCode(); } if (AllowHostsRegexp != null) { hashCode = hashCode * 59 + AllowHostsRegexp.GetHashCode(); } if (FilterMethods != null) { hashCode = hashCode * 59 + FilterMethods.GetHashCode(); } if (ExcludeAgentsRegexp != null) { hashCode = hashCode * 59 + ExcludeAgentsRegexp.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 (FilterMethods != null) { hashCode = hashCode * 59 + FilterMethods.GetHashCode(); } if (FilterEnableSafeUserAgents != null) { hashCode = hashCode * 59 + FilterEnableSafeUserAgents.GetHashCode(); } if (FilterSafeUserAgents != null) { hashCode = hashCode * 59 + FilterSafeUserAgents.GetHashCode(); } if (FilterExcludedPaths != null) { hashCode = hashCode * 59 + FilterExcludedPaths.GetHashCode(); } return(hashCode); } }