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