Example #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (modeCase_ == ModeOneofCase.ReadOnly)
            {
                hash ^= ReadOnly.GetHashCode();
            }
            if (modeCase_ == ModeOneofCase.ReadWrite)
            {
                hash ^= ReadWrite.GetHashCode();
            }
            hash ^= (int)modeCase_;
            return(hash);
        }
Example #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (modeCase_ == ModeOneofCase.ReadOnly)
            {
                hash ^= ReadOnly.GetHashCode();
            }
            if (modeCase_ == ModeOneofCase.ReadWrite)
            {
                hash ^= ReadWrite.GetHashCode();
            }
            hash ^= (int)modeCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }