示例#1
0
 /// <summary>
 /// Disposes of the data set closing all readers and streams in
 /// the pool. If a temporary data file is used then the file
 /// is also deleted if it's not being used by other processes.
 /// </summary>
 /// <param name="disposing">
 /// True if the calling method is Dispose, false for the finaliser.
 /// </param>
 protected override void Dispose(bool disposing)
 {
     Source.Dispose();
     base.Dispose(disposing);
 }
示例#2
0
 /// <summary>
 /// Disposes of the source ensuring all the readers
 /// are also closed.
 /// </summary>
 public void Dispose()
 {
     _readers.Clear();
     Source.Dispose();
 }