Esempio n. 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((Params != null ? Params.GetHashCode() : 0) * 397) ^ (Message != null ? Message.GetHashCode() : 0));
     }
 }
Esempio n. 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (payloadCase_ == PayloadOneofCase.BytebufParams)
            {
                hash ^= BytebufParams.GetHashCode();
            }
            if (payloadCase_ == PayloadOneofCase.SimpleParams)
            {
                hash ^= SimpleParams.GetHashCode();
            }
            if (payloadCase_ == PayloadOneofCase.ComplexParams)
            {
                hash ^= ComplexParams.GetHashCode();
            }
            return(hash);
        }
Esempio n. 3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (payloadCase_ == PayloadOneofCase.BytebufParams)
            {
                hash ^= BytebufParams.GetHashCode();
            }
            if (payloadCase_ == PayloadOneofCase.SimpleParams)
            {
                hash ^= SimpleParams.GetHashCode();
            }
            if (payloadCase_ == PayloadOneofCase.ComplexParams)
            {
                hash ^= ComplexParams.GetHashCode();
            }
            hash ^= (int)payloadCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }