object IServiceProvider.GetService(Type service) { if (service == null) { throw new ArgumentNullException("service"); } if (service == typeof(IDictionaryService)) { return this; } if (service == typeof(INestedContainer)) { if (this._nestedContainer == null) { this._nestedContainer = new SiteNestedContainer(this._component, null, this._host); } return this._nestedContainer; } if (((service != typeof(IServiceContainer)) && (service != typeof(IContainer))) && (this._nestedContainer != null)) { return this._nestedContainer.GetServiceInternal(service); } return this._host.GetService(service); }
internal NestedSite(IComponent component, DesignerHost host, string name, Container container) : base(component, host, name, container) { _container = container as SiteNestedContainer; _name = name; }
internal NestedSite(IComponent component, DesignerHost host, string name, Container container) : base(component, host, name, container) { this._container = container as SiteNestedContainer; this._name = name; }