Esempio n. 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (DnsProxySettings != null ? DnsProxySettings.GetHashCode() : 0);
         return(hashCode);
     }
 }
Esempio n. 2
0
 private bool Equals(DnsProxySettings other)
 {
     return(CollectionUtils.ListsEquals(Upstreams, other.Upstreams) &&
            CollectionUtils.ListsEquals(Fallbacks, other.Fallbacks) &&
            Equals(Dns64, other.Dns64) &&
            BlockedResponseTtlSec == other.BlockedResponseTtlSec &&
            Equals(EngineParams, other.EngineParams) &&
            CollectionUtils.ListsEquals(Listeners, other.Listeners) &&
            Ipv6Available == other.Ipv6Available &&
            BlockIpv6 == other.BlockIpv6 &&
            BlockingMode == other.BlockingMode &&
            CustomBlockingIpv4 == other.CustomBlockingIpv4 &&
            CustomBlockingIpv6 == other.CustomBlockingIpv6 &&
            DnsCacheSize == other.DnsCacheSize);
 }