Example #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((base.GetHashCode() * 397) ^ Signed.GetHashCode());
     }
 }
Example #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (messageCase_ == MessageOneofCase.Init)
            {
                hash ^= Init.GetHashCode();
            }
            if (messageCase_ == MessageOneofCase.Signed)
            {
                hash ^= Signed.GetHashCode();
            }
            if (meta_ != null)
            {
                hash ^= Meta.GetHashCode();
            }
            if (verify_ != null)
            {
                hash ^= Verify.GetHashCode();
            }
            hash ^= (int)messageCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }