示例#1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Certificate_.Length != 0)
            {
                hash ^= Certificate_.GetHashCode();
            }
            if (Key.Length != 0)
            {
                hash ^= Key.GetHashCode();
            }
            if (Usage != 0)
            {
                hash ^= Usage.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
示例#2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Certificate_.Length != 0)
            {
                hash ^= Certificate_.GetHashCode();
            }
            if (Key.Length != 0)
            {
                hash ^= Key.GetHashCode();
            }
            if (Usage != global::V2Ray.Core.Transport.Internet.Tls.Certificate.Types.Usage.Encipherment)
            {
                hash ^= Usage.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }