コード例 #1
0
ファイル: ThriftType.cs プロジェクト: ysj123688/Thrifty
        public override int GetHashCode()
        {
            int result = ProtocolType.GetHashCode();

            result = 31 * result + (this.CSharpType != null ? CSharpType.GetHashCode() : 0);
            return(result);
        }
コード例 #2
0
ファイル: Request.cs プロジェクト: ligu/KafkaClient
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = (int)ApiKey;
         hashCode = (hashCode * 397) ^ (ProtocolType?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
コード例 #3
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = (int)ErrorCode;
         hashCode = (hashCode * 397) ^ (GroupId?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (State?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (ProtocolType?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Protocol?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Members?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
コード例 #4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (StatPrefix.Length != 0)
            {
                hash ^= StatPrefix.GetHashCode();
            }
            if (ProtocolType != global::Envoy.Config.Filter.Network.DubboProxy.V3Alpha.ProtocolType.Dubbo)
            {
                hash ^= ProtocolType.GetHashCode();
            }
            if (SerializationType != global::Envoy.Config.Filter.Network.DubboProxy.V3Alpha.SerializationType.Hessian2)
            {
                hash ^= SerializationType.GetHashCode();
            }
            hash ^= routeConfig_.GetHashCode();
            hash ^= dubboFilters_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #5
0
 public override int GetHashCode()
 {
     return(ProtocolType.GetHashCode() ^ base.GetHashCode());
 }
コード例 #6
0
 public override int GetHashCode()
 {
     return(Protocol.GetHashCode() ^ Source.GetHashCode() ^ Destination.GetHashCode());
 }