public override int GetHashCode() { unchecked { int hashCode = ProtoType.GetHashCode(); hashCode = (hashCode * 397) ^ (ServerAddress != null ? ServerAddress.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ProviderName != null ? ProviderName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (DoHPath != null ? DoHPath.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { var hashCode = -1723101724; hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(route); hashCode = hashCode * -1521134295 + ptype.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(c2sdt); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(s2cdt); return(hashCode); }
public override int GetHashCode() { unchecked { int hashCode = ProtoType.GetHashCode(); hashCode = (hashCode * 397) ^ (ServerAddress != null ? ServerAddress.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ProviderName != null ? ProviderName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (DoHPath != null ? DoHPath.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (DoHPath != null ? PublicKey.Length : 0); hashCode = (hashCode * 397) ^ (DoHPath != null ? Hashes.Count : 0); hashCode = (hashCode * 397) ^ Properties.GetHashCode(); return(hashCode); } }