Example #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;
        }
Example #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;
        }
Example #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;
        }