/// <inheritdoc/> protected override void Dispose(bool disposing) { #if FEATURE_XML_DISPOSE_PROTECTED (BaseReader as IDisposable)?.Dispose(); #else BaseReader.Dispose(); #endif }
public void Dispose() { if (BaseReader != null) { BaseReader.Dispose(); Disposed = true; } }
/// <summary> /// Release resource /// </summary> protected override void Dispose(bool disposing) { base.Dispose(disposing); if (disposing && BaseReader != null) { BaseReader.Dispose(); BaseReader = null; } }
public void Dispose() { Clear(); if (BaseReader != null) { BaseReader.Dispose(); BaseReader = null; } }
/// <inheritdoc/> protected override void Dispose(bool disposing) { #if FEATURE_CLOSE if (ReadState != ReadState.Closed) { Close(); } #endif #if !FEATURE_XML_DISPOSE_PROTECTED BaseReader.Dispose(); #endif }
/// <summary> /// Releases all resources used by the <see cref="TypeTextReader"/> object. /// </summary> public void Dispose() { BaseReader.Dispose(); }