2 implementations of IDictionaryService
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.StubSite.cs (1)
19private class StubSite : ISite, IDictionaryService
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignerHost.Site.cs (1)
13internal class Site : ISite, IServiceContainer, IDictionaryService
116 references to IDictionaryService
netstandard (1)
netstandard.cs (1)
258[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.IDictionaryService))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
244[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.IDictionaryService))]
System.ComponentModel.TypeConverter (9)
System\ComponentModel\ReflectEventDescriptor.cs (6)
197IDictionaryService? dict = (IDictionaryService?)site.GetService(typeof(IDictionaryService)); 473IDictionaryService? dict = (IDictionaryService?)site.GetService(typeof(IDictionaryService));
System\ComponentModel\ReflectTypeDescriptionProvider.cs (3)
324IDictionaryService? ds = comp.Site.GetService(typeof(IDictionaryService)) as IDictionaryService;
System.Windows.Forms (4)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.StubSite.cs (4)
74return service == typeof(IDictionaryService) ? this : _owner.Site?.GetService(service); 80object? IDictionaryService.GetKey(object? value) 102object? IDictionaryService.GetValue(object key) 114void IDictionaryService.SetValue(object key, object? value)
System.Windows.Forms.Design (24)
System\ComponentModel\Design\DesignerHost.Site.cs (4)
49object? IDictionaryService.GetKey(object? value) 69object? IDictionaryService.GetValue(object key) 83void IDictionaryService.SetValue(object key, object? value) 153if (service == typeof(IDictionaryService))
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (4)
102IDictionaryService? ds = site.GetService<IDictionaryService>(); 180if (!site.TryGetService(out IDictionaryService? dictionaryService)) 182throw new InvalidOperationException(string.Format(SR.EventBindingServiceMissingService, nameof(IDictionaryService)))
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifiersExtenderProvider.cs (5)
69if (comp.Site.TryGetService(out IDictionaryService? dictionary)) 95if (comp.Site.TryGetService(out IDictionaryService? dictionary)) 129IDictionaryService? dictionary = site.GetService<IDictionaryService>(); 168if (comp.Site.TryGetService(out IDictionaryService? dictionary))
System\Windows\Forms\Design\CommandSet.cs (2)
220IDictionaryService? ds = site.GetService<IDictionaryService>();
System\Windows\Forms\Design\ComponentTray.cs (5)
1939IDictionaryService ds = (IDictionaryService)site.GetService(typeof(IDictionaryService)); 2034if (site.TryGetService(out IDictionaryService ds)) 2054if (component.Site.TryGetService(out IDictionaryService ds))
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (4)
122IDictionaryService dictionaryService = (IDictionaryService)TreeView.Site.GetService(typeof(IDictionaryService)); 146TreeView.Site.TryGetService(out IDictionaryService dictionaryService);
System.Windows.Forms.Design.Tests (49)
Mocks\MockSite.cs (1)
22.Setup(s => s.GetService(typeof(IDictionaryService)))
System\ComponentModel\Design\ComponentDesignerTests.cs (23)
216.Setup(s => s.GetService(typeof(IDictionaryService))) 509.Setup(s => s.GetService(typeof(IDictionaryService))) 581.Setup(s => s.GetService(typeof(IDictionaryService))) 812.Setup(s => s.GetService(typeof(IDictionaryService))) 927.Setup(s => s.GetService(typeof(IDictionaryService))) 1036.Setup(s => s.GetService(typeof(IDictionaryService))) 1144.Setup(s => s.GetService(typeof(IDictionaryService))) 1237.Setup(s => s.GetService(typeof(IDictionaryService))) 1328.Setup(s => s.GetService(typeof(IDictionaryService))) 1422.Setup(s => s.GetService(typeof(IDictionaryService))) 1529.Setup(s => s.GetService(typeof(IDictionaryService))) 1627.Setup(s => s.GetService(typeof(IDictionaryService))) 1706.Setup(s => s.GetService(typeof(IDictionaryService))) 1768.Setup(s => s.GetService(typeof(IDictionaryService))) 1824.Setup(s => s.GetService(typeof(IDictionaryService))) 1900.Setup(s => s.GetService(typeof(IDictionaryService))) 2040.Setup(s => s.GetService(typeof(IDictionaryService))) 2060mockSite.Verify(s => s.GetService(typeof(IDictionaryService)), Times.Exactly(4)); 2099.Setup(s => s.GetService(typeof(IDictionaryService))) 2150.Setup(s => s.GetService(typeof(IDictionaryService))) 2210.Setup(s => s.GetService(typeof(IDictionaryService))) 2622.Setup(s => s.GetService(typeof(IDictionaryService))) 2660.Setup(s => s.GetService(typeof(IDictionaryService)))
System\ComponentModel\Design\DesignerHostTests.cs (20)
915IDictionaryService service = Assert.IsAssignableFrom<IDictionaryService>(component.Site); 928IDictionaryService service = Assert.IsAssignableFrom<IDictionaryService>(component.Site); 947IDictionaryService service = Assert.IsAssignableFrom<IDictionaryService>(component.Site); 959IDictionaryService service = Assert.IsAssignableFrom<IDictionaryService>(component.Site); 977IDictionaryService service = Assert.IsAssignableFrom<IDictionaryService>(component.Site); 989IDictionaryService service = Assert.IsAssignableFrom<IDictionaryService>(component.Site); 1006IDictionaryService service = Assert.IsAssignableFrom<IDictionaryService>(component.Site); 1042IDictionaryService service = Assert.IsAssignableFrom<IDictionaryService>(component.Site); 1505Assert.Same(component.Site, component.Site.GetService(typeof(IDictionaryService))); 1563Assert.Same(component.Site, component.Site.GetService(typeof(IDictionaryService))); 2875IDictionaryService service = Assert.IsAssignableFrom<IDictionaryService>(component.Site);
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (2)
28.Setup(s => s.GetService(typeof(IDictionaryService))) 614.Setup(s => s.GetService(typeof(IDictionaryService)))
System\ComponentModel\Design\SiteNestedContainerTests.cs (2)
1009IDictionaryService service = Assert.IsAssignableFrom<IDictionaryService>(component.Site);
TestControlDesigner.Mocks.cs (1)
54.Setup(s => s.GetService(typeof(IDictionaryService)))
System.Windows.Forms.Tests (28)
System\Windows\Forms\AxHostTests.cs (7)
1847.Setup(s => s.GetService(typeof(IDictionaryService))) 1904.Setup(s => s.GetService(typeof(IDictionaryService))) 1959.Setup(s => s.GetService(typeof(IDictionaryService))) 2016.Setup(s => s.GetService(typeof(IDictionaryService))) 2078.Setup(s => s.GetService(typeof(IDictionaryService))) 2143.Setup(s => s.GetService(typeof(IDictionaryService))) 2217.Setup(s => s.GetService(typeof(IDictionaryService)))
System\Windows\Forms\ButtonBaseTests.cs (3)
547.Setup(s => s.GetService(typeof(IDictionaryService))) 593.Setup(s => s.GetService(typeof(IDictionaryService))) 639.Setup(s => s.GetService(typeof(IDictionaryService)))
System\Windows\Forms\TabPageTests.cs (3)
689.Setup(s => s.GetService(typeof(IDictionaryService))) 731.Setup(s => s.GetService(typeof(IDictionaryService))) 774.Setup(s => s.GetService(typeof(IDictionaryService)))
System\Windows\Forms\ToolStripControlHostTests.cs (15)
1979Assert.Same(c.Site, c.Site.GetService(typeof(IDictionaryService))); 2037IDictionaryService iDictionaryService = Assert.IsAssignableFrom<IDictionaryService>(c.Site); 2057IDictionaryService iDictionaryService = Assert.IsAssignableFrom<IDictionaryService>(c.Site); 2079IDictionaryService iDictionaryService = Assert.IsAssignableFrom<IDictionaryService>(c.Site); 2098IDictionaryService iDictionaryService = Assert.IsAssignableFrom<IDictionaryService>(c.Site); 2118IDictionaryService iDictionaryService = Assert.IsAssignableFrom<IDictionaryService>(c.Site); 2138IDictionaryService iDictionaryService = Assert.IsAssignableFrom<IDictionaryService>(c.Site); 2170IDictionaryService iDictionaryService = Assert.IsAssignableFrom<IDictionaryService>(c.Site);