4 implementations of ITypeResolutionService
System.Windows.Forms (1)
System\Resources\AssemblyNamesTypeResolutionService.cs (1)
10
internal class AssemblyNamesTypeResolutionService :
ITypeResolutionService
System.Windows.Forms.Design.Tests (2)
System\Drawing\Design\ToolboxItemTests.cs (1)
1682
private class CustomTypeResolutionService :
ITypeResolutionService
System\Windows\Forms\Design\DataGridViewAddColumnDialogTests.cs (1)
84
private class MockTypeResolutionService :
ITypeResolutionService
System.Windows.Forms.Tests (1)
System\Resources\ResXSerializationBinderTests.cs (1)
65
private class TrackGetTypePathTypeResolutionService :
ITypeResolutionService
124 references to ITypeResolutionService
netstandard (1)
netstandard.cs (1)
273
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.
ITypeResolutionService
))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
259
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.
ITypeResolutionService
))]
System.ComponentModel.TypeConverter (6)
System\ComponentModel\LicFileLicenseProvider.cs (3)
70
ITypeResolutionService
? resolver = (
ITypeResolutionService
?)context.GetService(typeof(
ITypeResolutionService
));
System\ComponentModel\TypeDescriptor.cs (3)
2556
ITypeResolutionService
? typeResolutionService = (
ITypeResolutionService
?)site?.GetService(typeof(
ITypeResolutionService
));
System.Windows.Forms (18)
System\Resources\ResXDataNode.cs (5)
326
private object? GenerateObjectFromDataNodeInfo(DataNodeInfo dataNodeInfo,
ITypeResolutionService
? typeResolver)
415
private object? GenerateObjectFromBinaryDataNodeInfo(DataNodeInfo dataNodeInfo,
ITypeResolutionService
? typeResolver)
518
public string? GetValueTypeName(
ITypeResolutionService
? typeResolver)
601
public object? GetValue(
ITypeResolutionService
? typeResolver)
665
private static Type? ResolveType(string typeName,
ITypeResolutionService
? typeResolver)
System\Resources\ResXResourceReader.cs (10)
25
private readonly
ITypeResolutionService
? _typeResolver;
38
private ResXResourceReader(
ITypeResolutionService
? typeResolver)
54
public ResXResourceReader(string fileName,
ITypeResolutionService
? typeResolver)
59
internal ResXResourceReader(string fileName,
ITypeResolutionService
? typeResolver, IAliasResolver? aliasResolver)
70
public ResXResourceReader(TextReader reader,
ITypeResolutionService
typeResolver)
75
internal ResXResourceReader(TextReader reader,
ITypeResolutionService
? typeResolver, IAliasResolver? aliasResolver)
86
public ResXResourceReader(Stream stream,
ITypeResolutionService
typeResolver)
91
internal ResXResourceReader(Stream stream,
ITypeResolutionService
? typeResolver, IAliasResolver? aliasResolver)
285
=> FromFileContents(fileContents, (
ITypeResolutionService
?)null);
290
public static ResXResourceReader FromFileContents(string fileContents,
ITypeResolutionService
? typeResolver)
System\Resources\ResXSerializationBinder.cs (3)
21
private readonly
ITypeResolutionService
? _typeResolver;
26
/// <see cref="
ITypeResolutionService
.GetType(string)"/> is called by this binder.
28
internal ResXSerializationBinder(
ITypeResolutionService
? typeResolver) => _typeResolver = typeResolver;
System.Windows.Forms.Design (21)
System\ComponentModel\Design\DesignerHost.cs (1)
1043
if (this.TryGetService(out
ITypeResolutionService
? ts))
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.LocalDesignerSerializationManager.cs (1)
44
private bool TypeResolutionAvailable => _typeSvcAvailable ??= GetService(typeof(
ITypeResolutionService
)) is not null;
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (3)
63
protected abstract
ITypeResolutionService
? TypeResolutionService { get; }
105
host.RemoveService<
ITypeResolutionService
>();
594
if (!TryGetService(out
ITypeResolutionService
? typeResolutionService))
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (3)
18
private
ITypeResolutionService
? _typeResolver;
571
_typeResolver = GetService(typeof(
ITypeResolutionService
)) as
ITypeResolutionService
;
System\Drawing\Design\ToolboxItem.cs (1)
452
if (host.TryGetService(out
ITypeResolutionService
? ts))
System\Windows\Forms\Design\ComponentTray.cs (3)
782
ITypeResolutionService
tr = (
ITypeResolutionService
)GetService(typeof(
ITypeResolutionService
));
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
202
public static ComponentDesigner? GetComponentDesignerForType(
ITypeResolutionService
? typeResolutionService, Type type)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (4)
116
ITypeResolutionService
? tr = _liveDataGridView?.Site?.GetService<
ITypeResolutionService
>();
873
ITypeResolutionService
? tr = _liveDataGridView?.Site?.GetService<
ITypeResolutionService
>();
System\Windows\Forms\Design\DesignBindingPicker.cs (2)
100
private
ITypeResolutionService
? _typeResolutionService; // Service that can return Type info for types in the user's project, at design time
387
_typeResolutionService = _serviceProvider.GetService<
ITypeResolutionService
>();
System\Windows\Forms\Design\DocumentDesigner.AxToolboxItem.cs (2)
175
ITypeResolutionService
? trs = host.GetService<
ITypeResolutionService
>();
System.Windows.Forms.Design.Tests (77)
System\ComponentModel\Design\DesignerHostTests.cs (30)
194
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
215
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
250
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
408
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
479
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
525
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
544
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
624
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
680
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
714
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
769
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
822
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
867
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
1059
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
1089
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
1122
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
1156
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
1191
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
1229
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
1422
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
1468
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
1493
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
1534
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
2385
Mock<
ITypeResolutionService
> mockTypeResolutionService = new(MockBehavior.Strict);
2392
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
2398
mockServiceProvider.Verify(p => p.GetService(typeof(
ITypeResolutionService
)), Times.Once());
2414
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
2420
mockServiceProvider.Verify(p => p.GetService(typeof(
ITypeResolutionService
)), Times.Once());
2599
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
2669
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
System\ComponentModel\Design\DesignSurfaceTests.cs (1)
132
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (2)
200
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
293
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (22)
1073
Mock<
ITypeResolutionService
> mockTypeResolutionService = new(MockBehavior.Strict);
1083
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
1088
mockServiceProvider.Verify(p => p.GetService(typeof(
ITypeResolutionService
)), Times.Once());
1093
mockServiceProvider.Verify(p => p.GetService(typeof(
ITypeResolutionService
)), Times.Once());
1104
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
1105
.Returns((
ITypeResolutionService
)null);
1113
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
1116
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
1431
Mock<
ITypeResolutionService
> mockTypeResolutionService = new(MockBehavior.Strict);
1451
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
1460
mockServiceProvider.Verify(p => p.GetService(typeof(
ITypeResolutionService
)), Times.Once());
1468
mockServiceProvider.Verify(p => p.GetService(typeof(
ITypeResolutionService
)), Times.Once());
1482
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
1483
.Returns((
ITypeResolutionService
)null);
1491
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
1494
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
1507
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
1510
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
1559
Mock<
ITypeResolutionService
> mockTypeResolutionService = new(MockBehavior.Strict);
1579
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
1591
mockServiceProvider.Verify(p => p.GetService(typeof(
ITypeResolutionService
)), Times.Once());
1599
mockServiceProvider.Verify(p => p.GetService(typeof(
ITypeResolutionService
)), Times.Once());
System\ComponentModel\Design\SiteNestedContainerTests.cs (9)
112
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
124
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
153
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
312
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
388
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
453
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
466
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
735
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
800
.Setup(p => p.GetService(typeof(
ITypeResolutionService
)))
System\Drawing\Design\ToolboxItemTests.cs (12)
428
.Setup(h => h.GetService(typeof(
ITypeResolutionService
)))
494
.Setup(h => h.GetService(typeof(
ITypeResolutionService
)))
562
.Setup(h => h.GetService(typeof(
ITypeResolutionService
)))
621
.Setup(h => h.GetService(typeof(
ITypeResolutionService
)))
747
.Setup(h => h.GetService(typeof(
ITypeResolutionService
)))
813
.Setup(h => h.GetService(typeof(
ITypeResolutionService
)))
881
.Setup(h => h.GetService(typeof(
ITypeResolutionService
)))
1191
.Setup(h => h.GetService(typeof(
ITypeResolutionService
)))
1256
.Setup(h => h.GetService(typeof(
ITypeResolutionService
)))
1264
.Setup(h => h.GetService(typeof(
ITypeResolutionService
)))
1307
.Setup(h => h.GetService(typeof(
ITypeResolutionService
)))
1319
.Setup(h => h.GetService(typeof(
ITypeResolutionService
)))
System\Windows\Forms\Design\DataGridViewAddColumnDialogTests.cs (1)
56
ITypeResolutionService
? typeResolutionService = useTypeResolutionService.HasValue && useTypeResolutionService.Value ? new MockTypeResolutionService() : null;