1 implementation of ITypeDiscoveryService
DesignSurfaceExt (1)
TypeDiscoveryService.cs (1)
10
internal sealed class TypeDiscoveryService :
ITypeDiscoveryService
38 references to ITypeDiscoveryService
DesignSurfaceExt (1)
DesignSurfaceExt.cs (1)
329
ServiceContainer.AddService(typeof(
ITypeDiscoveryService
), new TypeDiscoveryService());
netstandard (1)
netstandard.cs (1)
272
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.
ITypeDiscoveryService
))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
258
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.
ITypeDiscoveryService
))]
System.Windows.Forms.Design (16)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (2)
665
ITypeDiscoveryService
? discoveryService = host.GetService<
ITypeDiscoveryService
>();
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.cs (3)
30
ITypeDiscoveryService
? discoveryService = null;
33
discoveryService = host.GetService(typeof(
ITypeDiscoveryService
)) as
ITypeDiscoveryService
;
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.Picker.cs (1)
77
public void Start(IWindowsFormsEditorService edSvc,
ITypeDiscoveryService
discoveryService, Type defaultType)
System\Windows\Forms\Design\MaskDesignerDialog.cs (1)
366
public void DiscoverMaskDescriptors(
ITypeDiscoveryService
? discoveryService)
System\Windows\Forms\Design\MaskedTextBoxDesignerActionList.cs (3)
16
private readonly
ITypeDiscoveryService
? _discoverySvc;
29
_discoverySvc = GetService(typeof(
ITypeDiscoveryService
)) as
ITypeDiscoveryService
;
System\Windows\Forms\Design\MaskPropertyEditor.cs (2)
24
ITypeDiscoveryService
? discoveryService,
66
provider.GetService<
ITypeDiscoveryService
>(),
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (4)
237
ITypeDiscoveryService
discoveryService = null;
240
discoveryService = serviceProvider.GetService(typeof(
ITypeDiscoveryService
)) as
ITypeDiscoveryService
;
246
public static Type[] GetCustomItemTypes(IComponent component,
ITypeDiscoveryService
discoveryService)
System.Windows.Forms.Design.Tests (19)
System\Windows\Forms\Design\DataGridViewColumnTypeEditorTests.cs (2)
66
Mock<
ITypeDiscoveryService
> mockDiscoveryService = new();
72
mockDesignerHost.Setup(d => d.GetService(typeof(
ITypeDiscoveryService
)))
System\Windows\Forms\Design\DataGridViewColumnTypePickerTests.cs (2)
46
Mock<
ITypeDiscoveryService
> discoveryServiceMock = new();
71
Mock<
ITypeDiscoveryService
> discoveryServiceMock = new();
System\Windows\Forms\Design\MaskDesignerDialogTests.cs (1)
75
Mock<
ITypeDiscoveryService
> mockDiscoveryService = new();
System\Windows\Forms\Design\MaskedTextBoxDesignerActionListTests.cs (2)
12
private readonly Mock<
ITypeDiscoveryService
> _mockTypeDiscoveryService;
33
mockSite.Setup(s => s.GetService(typeof(
ITypeDiscoveryService
))).Returns(_mockTypeDiscoveryService.Object);
System\Windows\Forms\Design\MaskedTextBoxDesignerTests.cs (8)
95
ITypeDiscoveryService
typeDiscoveryService = new Mock<
ITypeDiscoveryService
>().Object;
100
mockServiceContainer.Setup(s => s.GetService(typeof(
ITypeDiscoveryService
))).Returns(typeDiscoveryService);
105
mockMockSite.Setup(s => s.GetService(typeof(
ITypeDiscoveryService
))).Returns(typeDiscoveryService);
118
ITypeDiscoveryService
typeDiscoveryService = new Mock<
ITypeDiscoveryService
>().Object;
123
mockServiceContainer.Setup(s => s.GetService(typeof(
ITypeDiscoveryService
))).Returns(typeDiscoveryService);
128
mockMockSite.Setup(s => s.GetService(typeof(
ITypeDiscoveryService
))).Returns(typeDiscoveryService);
System\Windows\Forms\Design\ToolStripDesignerUtilsTests.cs (4)
70
Mock<
ITypeDiscoveryService
> discoveryService = new();
72
serviceProvider.Setup(sp => sp.GetService(typeof(
ITypeDiscoveryService
))).Returns(discoveryService.Object);
84
Mock<
ITypeDiscoveryService
> discoveryService = new();
107
ITypeDiscoveryService
? discoveryService = null;