All pastes #64354 Raw Edit

Mine

public text v1 · immutable
#64354 ·published 2006-06-11 15:57 UTC
rendered paste body
	public class DesignSurface : IServiceProvider, IDisposable
	{

        #region DefaultDesignerLoader : DesignerLoader
		
		internal class DefaultDesignerLoader : DesignerLoader
		{

			private Type componentType
			
			protected  DefaultDesignerLoader ()
			{
			}

			public DefaultDesignerLoader (Type componentType)
			{
				this.componentType = componentType;
			}

			public override void BeginLoad (IDesignerLoaderHost host)
			{
				if (this.componentType != null) {
					host.CreateComponent (componentType);
				}
				
				host.EndLoad (componentType.FullName, true, null);
			}
			
			public override void Dispose ()
			{
			}
		}