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

            if (IntVal != 0)
            {
                hash ^= IntVal.GetHashCode();
            }
            if (StrVal.Length != 0)
            {
                hash ^= StrVal.GetHashCode();
            }
            if (msgVal_ != null)
            {
                hash ^= MsgVal.GetHashCode();
            }
            if (EnumVal != 0)
            {
                hash ^= EnumVal.GetHashCode();
            }
            if (NestEnumVal != 0)
            {
                hash ^= NestEnumVal.GetHashCode();
            }
            hash ^= msgArray_.GetHashCode();
            hash ^= nestEnumArray_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #2
0
 // ReSharper disable once NonReadonlyMemberInGetHashCode
 public override int GetHashCode() => StrVal.GetHashCode();