コード例 #1
0
ファイル: Kv.cs プロジェクト: UnderNotic/EtcdGrpcClient
        public override int GetHashCode()
        {
            int hash = 1;

            if (Type != 0)
            {
                hash ^= Type.GetHashCode();
            }
            if (kv_ != null)
            {
                hash ^= Kv.GetHashCode();
            }
            if (prevKv_ != null)
            {
                hash ^= PrevKv.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
ファイル: Kv.grpc.cs プロジェクト: yoricksmeets/dotnet-etcd
        public override int GetHashCode()
        {
            int hash = 1;

            if (Type != global::Mvccpb.Event.Types.EventType.Put)
            {
                hash ^= Type.GetHashCode();
            }
            if (kv_ != null)
            {
                hash ^= Kv.GetHashCode();
            }
            if (prevKv_ != null)
            {
                hash ^= PrevKv.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }