Exemplo n.º 1
0
        protected void CheckItemType(ReaderItemType type)
        {
            if (_currentType != type)
            {
                throw new InvalidOperationException(string.Format(CultureInfo.InvariantCulture, "{0} is not a valid {1} element.", _reader.Name, type));
            }

            _currentNodeRead = true;
        }
Exemplo n.º 2
0
        protected void CheckItemType(ReaderItemType type)
        {
            if (currentType != type)
            {
                throw new InvalidOperationException(string.Format(CultureInfo.InvariantCulture,
                                                                  "{0} is not a valid {1} element.", reader.Name, type));
            }

            currentNodeRead = true;
        }
Exemplo n.º 3
0
        protected void CheckItemType(ReaderItemType type)
        {
            if (_currentType != type)
            {
                throw new InvalidOperationException(string.Format("{0} is not a valid {1} element.", _reader.Name, type));
            }

            _currentNodeRead = true;
        }