Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (kindCase_ == KindOneofCase.ExampleList)
            {
                hash ^= ExampleList.GetHashCode();
            }
            if (kindCase_ == KindOneofCase.ExampleListWithContext)
            {
                hash ^= ExampleListWithContext.GetHashCode();
            }
            hash ^= (int)kindCase_;
            return(hash);
        }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (kindCase_ == KindOneofCase.ExampleList)
            {
                hash ^= ExampleList.GetHashCode();
            }
            if (kindCase_ == KindOneofCase.ExampleListWithContext)
            {
                hash ^= ExampleListWithContext.GetHashCode();
            }
            hash ^= (int)kindCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }