4 implementations of ITypeResolutionService
System.Windows.Forms (1)
System\Resources\AssemblyNamesTypeResolutionService.cs (1)
10internal class AssemblyNamesTypeResolutionService : ITypeResolutionService
System.Windows.Forms.Design.Tests (2)
System\Drawing\Design\ToolboxItemTests.cs (1)
1682private class CustomTypeResolutionService : ITypeResolutionService
System\Windows\Forms\Design\DataGridViewAddColumnDialogTests.cs (1)
84private class MockTypeResolutionService : ITypeResolutionService
System.Windows.Forms.Tests (1)
System\Resources\ResXSerializationBinderTests.cs (1)
65private 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)
70ITypeResolutionService? resolver = (ITypeResolutionService?)context.GetService(typeof(ITypeResolutionService));
System\ComponentModel\TypeDescriptor.cs (3)
2556ITypeResolutionService? typeResolutionService = (ITypeResolutionService?)site?.GetService(typeof(ITypeResolutionService));
System.Windows.Forms (18)
System\Resources\ResXDataNode.cs (5)
326private object? GenerateObjectFromDataNodeInfo(DataNodeInfo dataNodeInfo, ITypeResolutionService? typeResolver) 415private object? GenerateObjectFromBinaryDataNodeInfo(DataNodeInfo dataNodeInfo, ITypeResolutionService? typeResolver) 518public string? GetValueTypeName(ITypeResolutionService? typeResolver) 601public object? GetValue(ITypeResolutionService? typeResolver) 665private static Type? ResolveType(string typeName, ITypeResolutionService? typeResolver)
System\Resources\ResXResourceReader.cs (10)
25private readonly ITypeResolutionService? _typeResolver; 38private ResXResourceReader(ITypeResolutionService? typeResolver) 54public ResXResourceReader(string fileName, ITypeResolutionService? typeResolver) 59internal ResXResourceReader(string fileName, ITypeResolutionService? typeResolver, IAliasResolver? aliasResolver) 70public ResXResourceReader(TextReader reader, ITypeResolutionService typeResolver) 75internal ResXResourceReader(TextReader reader, ITypeResolutionService? typeResolver, IAliasResolver? aliasResolver) 86public ResXResourceReader(Stream stream, ITypeResolutionService typeResolver) 91internal ResXResourceReader(Stream stream, ITypeResolutionService? typeResolver, IAliasResolver? aliasResolver) 285=> FromFileContents(fileContents, (ITypeResolutionService?)null); 290public static ResXResourceReader FromFileContents(string fileContents, ITypeResolutionService? typeResolver)
System\Resources\ResXSerializationBinder.cs (3)
21private readonly ITypeResolutionService? _typeResolver; 26/// <see cref="ITypeResolutionService.GetType(string)"/> is called by this binder. 28internal ResXSerializationBinder(ITypeResolutionService? typeResolver) => _typeResolver = typeResolver;
System.Windows.Forms.Design (21)
System\ComponentModel\Design\DesignerHost.cs (1)
1043if (this.TryGetService(out ITypeResolutionService? ts))
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.LocalDesignerSerializationManager.cs (1)
44private bool TypeResolutionAvailable => _typeSvcAvailable ??= GetService(typeof(ITypeResolutionService)) is not null;
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (3)
63protected abstract ITypeResolutionService? TypeResolutionService { get; } 105host.RemoveService<ITypeResolutionService>(); 594if (!TryGetService(out ITypeResolutionService? typeResolutionService))
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (3)
18private ITypeResolutionService? _typeResolver; 571_typeResolver = GetService(typeof(ITypeResolutionService)) as ITypeResolutionService;
System\Drawing\Design\ToolboxItem.cs (1)
452if (host.TryGetService(out ITypeResolutionService? ts))
System\Windows\Forms\Design\ComponentTray.cs (3)
782ITypeResolutionService tr = (ITypeResolutionService)GetService(typeof(ITypeResolutionService));
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
202public static ComponentDesigner? GetComponentDesignerForType(ITypeResolutionService? typeResolutionService, Type type)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (4)
116ITypeResolutionService? tr = _liveDataGridView?.Site?.GetService<ITypeResolutionService>(); 873ITypeResolutionService? tr = _liveDataGridView?.Site?.GetService<ITypeResolutionService>();
System\Windows\Forms\Design\DesignBindingPicker.cs (2)
100private 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)
175ITypeResolutionService? 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))) 2385Mock<ITypeResolutionService> mockTypeResolutionService = new(MockBehavior.Strict); 2392.Setup(p => p.GetService(typeof(ITypeResolutionService))) 2398mockServiceProvider.Verify(p => p.GetService(typeof(ITypeResolutionService)), Times.Once()); 2414.Setup(p => p.GetService(typeof(ITypeResolutionService))) 2420mockServiceProvider.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)
1073Mock<ITypeResolutionService> mockTypeResolutionService = new(MockBehavior.Strict); 1083.Setup(p => p.GetService(typeof(ITypeResolutionService))) 1088mockServiceProvider.Verify(p => p.GetService(typeof(ITypeResolutionService)), Times.Once()); 1093mockServiceProvider.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))) 1431Mock<ITypeResolutionService> mockTypeResolutionService = new(MockBehavior.Strict); 1451.Setup(p => p.GetService(typeof(ITypeResolutionService))) 1460mockServiceProvider.Verify(p => p.GetService(typeof(ITypeResolutionService)), Times.Once()); 1468mockServiceProvider.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))) 1559Mock<ITypeResolutionService> mockTypeResolutionService = new(MockBehavior.Strict); 1579.Setup(p => p.GetService(typeof(ITypeResolutionService))) 1591mockServiceProvider.Verify(p => p.GetService(typeof(ITypeResolutionService)), Times.Once()); 1599mockServiceProvider.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)
56ITypeResolutionService? typeResolutionService = useTypeResolutionService.HasValue && useTypeResolutionService.Value ? new MockTypeResolutionService() : null;