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
120 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 (53)
Mocks\MockSite.cs (1)
24
.Setup(s => s.GetService(typeof(
IDictionaryService
)))
System\ComponentModel\Design\ComponentDesignerTests.cs (23)
218
.Setup(s => s.GetService(typeof(
IDictionaryService
)))
511
.Setup(s => s.GetService(typeof(
IDictionaryService
)))
583
.Setup(s => s.GetService(typeof(
IDictionaryService
)))
814
.Setup(s => s.GetService(typeof(
IDictionaryService
)))
929
.Setup(s => s.GetService(typeof(
IDictionaryService
)))
1038
.Setup(s => s.GetService(typeof(
IDictionaryService
)))
1146
.Setup(s => s.GetService(typeof(
IDictionaryService
)))
1239
.Setup(s => s.GetService(typeof(
IDictionaryService
)))
1330
.Setup(s => s.GetService(typeof(
IDictionaryService
)))
1424
.Setup(s => s.GetService(typeof(
IDictionaryService
)))
1531
.Setup(s => s.GetService(typeof(
IDictionaryService
)))
1629
.Setup(s => s.GetService(typeof(
IDictionaryService
)))
1708
.Setup(s => s.GetService(typeof(
IDictionaryService
)))
1770
.Setup(s => s.GetService(typeof(
IDictionaryService
)))
1826
.Setup(s => s.GetService(typeof(
IDictionaryService
)))
1902
.Setup(s => s.GetService(typeof(
IDictionaryService
)))
2042
.Setup(s => s.GetService(typeof(
IDictionaryService
)))
2062
mockSite.Verify(s => s.GetService(typeof(
IDictionaryService
)), Times.Exactly(4));
2101
.Setup(s => s.GetService(typeof(
IDictionaryService
)))
2152
.Setup(s => s.GetService(typeof(
IDictionaryService
)))
2212
.Setup(s => s.GetService(typeof(
IDictionaryService
)))
2624
.Setup(s => s.GetService(typeof(
IDictionaryService
)))
2662
.Setup(s => s.GetService(typeof(
IDictionaryService
)))
System\ComponentModel\Design\DesignerHostTests.cs (20)
917
IDictionaryService
service = Assert.IsAssignableFrom<
IDictionaryService
>(component.Site);
930
IDictionaryService
service = Assert.IsAssignableFrom<
IDictionaryService
>(component.Site);
949
IDictionaryService
service = Assert.IsAssignableFrom<
IDictionaryService
>(component.Site);
961
IDictionaryService
service = Assert.IsAssignableFrom<
IDictionaryService
>(component.Site);
979
IDictionaryService
service = Assert.IsAssignableFrom<
IDictionaryService
>(component.Site);
991
IDictionaryService
service = Assert.IsAssignableFrom<
IDictionaryService
>(component.Site);
1008
IDictionaryService
service = Assert.IsAssignableFrom<
IDictionaryService
>(component.Site);
1044
IDictionaryService
service = Assert.IsAssignableFrom<
IDictionaryService
>(component.Site);
1507
Assert.Same(component.Site, component.Site.GetService(typeof(
IDictionaryService
)));
1565
Assert.Same(component.Site, component.Site.GetService(typeof(
IDictionaryService
)));
2876
IDictionaryService
service = Assert.IsAssignableFrom<
IDictionaryService
>(component.Site);
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (2)
32
.Setup(s => s.GetService(typeof(
IDictionaryService
)))
618
.Setup(s => s.GetService(typeof(
IDictionaryService
)))
System\ComponentModel\Design\SiteNestedContainerTests.cs (2)
1011
IDictionaryService
service = Assert.IsAssignableFrom<
IDictionaryService
>(component.Site);
System\Windows\Forms\Design\CommandSetTests.cs (2)
20
Mock<
IDictionaryService
> mockDictionaryService = new();
26
mockSite.Setup(s => s.GetService(typeof(
IDictionaryService
))).Returns(mockDictionaryService.Object);
System\Windows\Forms\Design\UserControlDocumentDesignerTests.cs (2)
57
Mock<
IDictionaryService
> dictionaryService = new(MockBehavior.Strict);
64
.Setup(s => s.GetService(typeof(
IDictionaryService
)))
TestControlDesigner.Mocks.cs (1)
52
.Setup(s => s.GetService(typeof(
IDictionaryService
)))
System.Windows.Forms.Tests (28)
System\Windows\Forms\AxHostTests.cs (7)
1849
.Setup(s => s.GetService(typeof(
IDictionaryService
)))
1906
.Setup(s => s.GetService(typeof(
IDictionaryService
)))
1961
.Setup(s => s.GetService(typeof(
IDictionaryService
)))
2018
.Setup(s => s.GetService(typeof(
IDictionaryService
)))
2080
.Setup(s => s.GetService(typeof(
IDictionaryService
)))
2145
.Setup(s => s.GetService(typeof(
IDictionaryService
)))
2219
.Setup(s => s.GetService(typeof(
IDictionaryService
)))
System\Windows\Forms\ButtonBaseTests.cs (3)
549
.Setup(s => s.GetService(typeof(
IDictionaryService
)))
595
.Setup(s => s.GetService(typeof(
IDictionaryService
)))
641
.Setup(s => s.GetService(typeof(
IDictionaryService
)))
System\Windows\Forms\TabPageTests.cs (3)
691
.Setup(s => s.GetService(typeof(
IDictionaryService
)))
733
.Setup(s => s.GetService(typeof(
IDictionaryService
)))
776
.Setup(s => s.GetService(typeof(
IDictionaryService
)))
System\Windows\Forms\ToolStripControlHostTests.cs (15)
1981
Assert.Same(c.Site, c.Site.GetService(typeof(
IDictionaryService
)));
2039
IDictionaryService
iDictionaryService = Assert.IsAssignableFrom<
IDictionaryService
>(c.Site);
2059
IDictionaryService
iDictionaryService = Assert.IsAssignableFrom<
IDictionaryService
>(c.Site);
2081
IDictionaryService
iDictionaryService = Assert.IsAssignableFrom<
IDictionaryService
>(c.Site);
2100
IDictionaryService
iDictionaryService = Assert.IsAssignableFrom<
IDictionaryService
>(c.Site);
2120
IDictionaryService
iDictionaryService = Assert.IsAssignableFrom<
IDictionaryService
>(c.Site);
2140
IDictionaryService
iDictionaryService = Assert.IsAssignableFrom<
IDictionaryService
>(c.Site);
2172
IDictionaryService
iDictionaryService = Assert.IsAssignableFrom<
IDictionaryService
>(c.Site);