public override int GetHashCode() { unchecked { int hashCode = (Upstreams != null ? Upstreams.Count : 0); hashCode = (hashCode * 397) ^ (Fallbacks != null ? Fallbacks.Count : 0); hashCode = (hashCode * 397) ^ (Dns64 != null ? Dns64.GetHashCode() : 0); hashCode = (hashCode * 397) ^ BlockedResponseTtlSec.GetHashCode(); hashCode = (hashCode * 397) ^ (EngineParams != null ? EngineParams.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Listeners != null ? Listeners.Count : 0); hashCode = (hashCode * 397) ^ Ipv6Available.GetHashCode(); hashCode = (hashCode * 397) ^ BlockIpv6.GetHashCode(); hashCode = (hashCode * 397) ^ BlockingMode.GetHashCode(); hashCode = (hashCode * 397) ^ (CustomBlockingIpv4 != null ? CustomBlockingIpv4.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (CustomBlockingIpv6 != null ? CustomBlockingIpv6.GetHashCode() : 0); hashCode = (hashCode * 397) ^ DnsCacheSize.GetHashCode(); return(hashCode); } }
private bool Equals(EngineParams other) { return(CollectionUtils.SequenceEqual(FilterParams, other.FilterParams)); }
private bool Equals(EngineParams other) { return(CollectionUtils.ListsEquals(FilterParams, other.FilterParams)); }