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

            if (kindCase_ == KindOneofCase.ObjectValue)
            {
                hash ^= ObjectValue.GetHashCode();
            }
            if (kindCase_ == KindOneofCase.ListValue)
            {
                hash ^= ListValue.GetHashCode();
            }
            if (kindCase_ == KindOneofCase.DictionaryValue)
            {
                hash ^= DictionaryValue.GetHashCode();
            }
            hash ^= (int)kindCase_;
            return(hash);
        }