コード例 #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (DomainStrategy != 0)
            {
                hash ^= DomainStrategy.GetHashCode();
            }
            if (Timeout != 0)
            {
                hash ^= Timeout.GetHashCode();
            }
            if (destinationOverride_ != null)
            {
                hash ^= DestinationOverride.GetHashCode();
            }
            if (UserLevel != 0)
            {
                hash ^= UserLevel.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
ファイル: Config.cs プロジェクト: techotaku/v2ray-dotnet-sdk
        public override int GetHashCode()
        {
            int hash = 1;

            if (DomainStrategy != global::V2Ray.Core.Proxy.Freedom.Config.Types.DomainStrategy.AsIs)
            {
                hash ^= DomainStrategy.GetHashCode();
            }
            if (Timeout != 0)
            {
                hash ^= Timeout.GetHashCode();
            }
            if (destinationOverride_ != null)
            {
                hash ^= DestinationOverride.GetHashCode();
            }
            if (UserLevel != 0)
            {
                hash ^= UserLevel.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }