protected virtual void Dispose(bool disposing) { if (disposing) { if (reader != null) { ((IDisposable)reader).Dispose (); reader = null; } } }