Dispose() public method

public Dispose ( ) : void
return void
Exemplo n.º 1
0
        public void Dispose()
        {
            if (!this.disposed)
            {
                //clean up the services we've registered
                parentServices.RemoveService(typeof(IComponentChangeService));
                parentServices.RemoveService(typeof(IDesignerHost));

                //and the container
                container.Dispose();

                disposed = true;
            }
        }