Exemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ServiceId.Length != 0)
            {
                hash ^= ServiceId.GetHashCode();
            }
            if (ServiceAliasId.Length != 0)
            {
                hash ^= ServiceAliasId.GetHashCode();
            }
            if (MethodId.Length != 0)
            {
                hash ^= MethodId.GetHashCode();
            }
            if (source_ != null)
            {
                hash ^= Source.GetHashCode();
            }
            if (target_ != null)
            {
                hash ^= Target.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 public override bool Equals(object obj)
 {
     return(obj is InvocationTargetDescriptor descriptor &&
            ApplicationId.Equals(descriptor.ApplicationId) &&
            ConnectionId.Equals(descriptor.ConnectionId) &&
            ServiceAliasId.Equals(descriptor.ServiceAliasId));
 }