public void Dispose(bool disposing) { if (disposing) { if (!this.disposed) { if (agency != null) { agency.Dispose(); } this.disposed = true; } } }