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

            if (Id != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (No != 0)
            {
                hash ^= No.GetHashCode();
            }
            if (FirstName.Length != 0)
            {
                hash ^= FirstName.GetHashCode();
            }
            if (LastName.Length != 0)
            {
                hash ^= LastName.GetHashCode();
            }
            if (Salary != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Salary);
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (No != 0)
            {
                hash ^= No.GetHashCode();
            }
            if (FirstName.Length != 0)
            {
                hash ^= FirstName.GetHashCode();
            }
            if (LastName.Length != 0)
            {
                hash ^= LastName.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 3
0
        public override int GetHashCode()
        {
            var hashCode = 2109148185;

            hashCode = hashCode * -1521134295 + No.GetHashCode();
            hashCode = hashCode * -1521134295 + IsOpen.GetHashCode();
            hashCode = hashCode * -1521134295 + IsOccupied.GetHashCode();
            return(hashCode);
        }
Exemplo n.º 4
0
        public override int GetHashCode()
        {
            unchecked
            {
                int result = 37; // prime

                result *= 397;   // also prime (see note)
                result += SessionId.GetHashCode();

                result *= 397;
                result += No.GetHashCode();

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

            if (no_ != null)
            {
                hash ^= No.GetHashCode();
            }
            if (ni_ != null)
            {
                hash ^= Ni.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 6
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (No != 0)
            {
                hash ^= No.GetHashCode();
            }
            if (OpCode != global::Dcgameprotobuf.PTxtOp.TxtMsg)
            {
                hash ^= OpCode.GetHashCode();
            }
            if (Msg.Length != 0)
            {
                hash ^= Msg.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }