J
Jon Shemitz
I'm puzzled by this, code clarified from working code
IToolboxService GetToolboxService(IDesignerHost AnyDesigner)
{
return (IToolboxService)
AnyDesigner.RootComponent.Site.
GetService( typeof(IToolboxService) );
}
Now, RootComponent is an IComponent, and Site is an ISite. Which
brings me to my question: ISite does not have a GetService method.
Components and Containers have a protected GetService method.
I appear to be calling a protected method of an object that I
supposedly only know of through an interface that doesn't include this
method?
IToolboxService GetToolboxService(IDesignerHost AnyDesigner)
{
return (IToolboxService)
AnyDesigner.RootComponent.Site.
GetService( typeof(IToolboxService) );
}
Now, RootComponent is an IComponent, and Site is an ISite. Which
brings me to my question: ISite does not have a GetService method.
Components and Containers have a protected GetService method.
I appear to be calling a protected method of an object that I
supposedly only know of through an interface that doesn't include this
method?