コード例 #1
0
ファイル: Config.cs プロジェクト: techotaku/v2ray-dotnet-sdk
        public override int GetHashCode()
        {
            int hash = 1;

            if (Password.Length != 0)
            {
                hash ^= Password.GetHashCode();
            }
            if (CipherType != global::V2Ray.Core.Proxy.Shadowsocks.CipherType.Unknown)
            {
                hash ^= CipherType.GetHashCode();
            }
            if (Ota != global::V2Ray.Core.Proxy.Shadowsocks.Account.Types.OneTimeAuth.Auto)
            {
                hash ^= Ota.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Password.Length != 0)
            {
                hash ^= Password.GetHashCode();
            }
            if (CipherType != 0)
            {
                hash ^= CipherType.GetHashCode();
            }
            if (Ota != 0)
            {
                hash ^= Ota.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }