示例#1
0
 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);
     }
 }
示例#2
0
文件: Proto.cs 项目: orf53975/mana
        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);
        }
示例#3
0
 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);
     }
 }