Exemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 /// <remarks>Generated by Resharper, though it seems like its good</remarks>
 public override int GetHashCode()
 {
     unchecked
     {
         return((SerializationType.GetHashCode() * 397) ^ (_uri != null ? _uri.GetHashCode() : 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);
        }