2 implementations of IDictionaryService
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.StubSite.cs (1)
19
private class StubSite : ISite,
IDictionaryService
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignerHost.Site.cs (1)
13
internal 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)
197
IDictionaryService
? dict = (
IDictionaryService
?)site.GetService(typeof(
IDictionaryService
));
473
IDictionaryService
? dict = (
IDictionaryService
?)site.GetService(typeof(
IDictionaryService
));
System\ComponentModel\ReflectTypeDescriptionProvider.cs (3)
324
IDictionaryService
? ds = comp.Site.GetService(typeof(
IDictionaryService
)) as
IDictionaryService
;
System.Windows.Forms (4)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.StubSite.cs (4)
74
return service == typeof(
IDictionaryService
) ? this : _owner.Site?.GetService(service);
80
object?
IDictionaryService
.GetKey(object? value)
102
object?
IDictionaryService
.GetValue(object key)
114
void
IDictionaryService
.SetValue(object key, object? value)
System.Windows.Forms.Design (24)
System\ComponentModel\Design\DesignerHost.Site.cs (4)
49
object?
IDictionaryService
.GetKey(object? value)
69
object?
IDictionaryService
.GetValue(object key)
83
void
IDictionaryService
.SetValue(object key, object? value)
153
if (service == typeof(
IDictionaryService
))
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (4)
102
IDictionaryService
? ds = site.GetService<
IDictionaryService
>();
180
if (!site.TryGetService(out
IDictionaryService
? dictionaryService))
182
throw new InvalidOperationException(string.Format(SR.EventBindingServiceMissingService, nameof(
IDictionaryService
)))
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifiersExtenderProvider.cs (5)
69
if (comp.Site.TryGetService(out
IDictionaryService
? dictionary))
95
if (comp.Site.TryGetService(out
IDictionaryService
? dictionary))
129
IDictionaryService
? dictionary = site.GetService<
IDictionaryService
>();
168
if (comp.Site.TryGetService(out
IDictionaryService
? dictionary))
System\Windows\Forms\Design\CommandSet.cs (2)
220
IDictionaryService
? ds = site.GetService<
IDictionaryService
>();
System\Windows\Forms\Design\ComponentTray.cs (5)
1939
IDictionaryService
ds = (
IDictionaryService
)site.GetService(typeof(
IDictionaryService
));
2034
if (site.TryGetService(out
IDictionaryService
ds))
2054
if (component.Site.TryGetService(out
IDictionaryService
ds))
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (4)
122
IDictionaryService
dictionaryService = (
IDictionaryService
)TreeView.Site.GetService(typeof(
IDictionaryService
));
146
TreeView.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
)))
2060
mockSite.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)
915
IDictionaryService
service = Assert.IsAssignableFrom<
IDictionaryService
>(component.Site);
928
IDictionaryService
service = Assert.IsAssignableFrom<
IDictionaryService
>(component.Site);
947
IDictionaryService
service = Assert.IsAssignableFrom<
IDictionaryService
>(component.Site);
959
IDictionaryService
service = Assert.IsAssignableFrom<
IDictionaryService
>(component.Site);
977
IDictionaryService
service = Assert.IsAssignableFrom<
IDictionaryService
>(component.Site);
989
IDictionaryService
service = Assert.IsAssignableFrom<
IDictionaryService
>(component.Site);
1006
IDictionaryService
service = Assert.IsAssignableFrom<
IDictionaryService
>(component.Site);
1042
IDictionaryService
service = Assert.IsAssignableFrom<
IDictionaryService
>(component.Site);
1505
Assert.Same(component.Site, component.Site.GetService(typeof(
IDictionaryService
)));
1563
Assert.Same(component.Site, component.Site.GetService(typeof(
IDictionaryService
)));
2875
IDictionaryService
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)
1009
IDictionaryService
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)
1979
Assert.Same(c.Site, c.Site.GetService(typeof(
IDictionaryService
)));
2037
IDictionaryService
iDictionaryService = Assert.IsAssignableFrom<
IDictionaryService
>(c.Site);
2057
IDictionaryService
iDictionaryService = Assert.IsAssignableFrom<
IDictionaryService
>(c.Site);
2079
IDictionaryService
iDictionaryService = Assert.IsAssignableFrom<
IDictionaryService
>(c.Site);
2098
IDictionaryService
iDictionaryService = Assert.IsAssignableFrom<
IDictionaryService
>(c.Site);
2118
IDictionaryService
iDictionaryService = Assert.IsAssignableFrom<
IDictionaryService
>(c.Site);
2138
IDictionaryService
iDictionaryService = Assert.IsAssignableFrom<
IDictionaryService
>(c.Site);
2170
IDictionaryService
iDictionaryService = Assert.IsAssignableFrom<
IDictionaryService
>(c.Site);