protected override void Dispose(bool disposing) { if (db != null) { db.Dispose(); } if (ErrorCollector != null) { ErrorCollector.Dispose(); } base.Dispose(disposing); }