public void Dispose() { if (_streamReader != null) { _streamReader.Dispose(); _streamReader = null; } if (_reader != null) { _reader.Dispose(); _reader = null; } }
public XmlAttributePreservationProvider(string fileName) { _streamReader = new StreamReader(File.OpenRead(fileName)); _reader = new PositionTrackingTextReader(_streamReader); }