Ejemplo n.º 1
0
        /// <inheritdoc/>
        protected override void Dispose(bool disposing)
        {
#if FEATURE_XML_DISPOSE_PROTECTED
            (BaseReader as IDisposable)?.Dispose();
#else
            BaseReader.Dispose();
#endif
        }
Ejemplo n.º 2
0
 public void Dispose()
 {
     if (BaseReader != null)
     {
         BaseReader.Dispose();
         Disposed = true;
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Release resource
 /// </summary>
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     if (disposing && BaseReader != null)
     {
         BaseReader.Dispose();
         BaseReader = null;
     }
 }
Ejemplo n.º 4
0
 public void Dispose()
 {
     Clear();
     if (BaseReader != null)
     {
         BaseReader.Dispose();
         BaseReader = null;
     }
 }
Ejemplo n.º 5
0
        /// <inheritdoc/>
        protected override void Dispose(bool disposing)
        {
#if FEATURE_CLOSE
            if (ReadState != ReadState.Closed)
            {
                Close();
            }
#endif

#if !FEATURE_XML_DISPOSE_PROTECTED
            BaseReader.Dispose();
#endif
        }
Ejemplo n.º 6
0
 /// <summary>
 /// Releases all resources used by the <see cref="TypeTextReader"/> object.
 /// </summary>
 public void Dispose()
 {
     BaseReader.Dispose();
 }