1 implementation of IReferenceService
System.Windows.Forms.Design (1)
System\ComponentModel\Design\ReferenceService.cs (1)
9internal sealed class ReferenceService : IReferenceService, IDisposable
35 references to IReferenceService
netstandard (1)
netstandard.cs (1)
265[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.IReferenceService))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
251[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.IReferenceService))]
System.ComponentModel.TypeConverter (6)
System\ComponentModel\ReferenceConverter.cs (6)
54if (context.GetService(typeof(IReferenceService)) is IReferenceService refSvc) 91if (context?.GetService(typeof(IReferenceService)) is IReferenceService refSvc) 133if (context.GetService(typeof(IReferenceService)) is IReferenceService refSvc)
System.Windows.Forms.Design (22)
System\ComponentModel\Design\DesignSurface.cs (2)
42ServiceContainer.AddService<IReferenceService>(callback); 429Debug.Assert(serviceType == typeof(IReferenceService), $"Demand created service not supported: {serviceType.Name}");
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (3)
87IReferenceService? rs = _eventService._provider.GetService<IReferenceService>(); 161if (site is null && _eventService._provider.TryGetService(out IReferenceService? referenceService))
System\ComponentModel\Design\ReferenceService.cs (6)
67ObjectDisposedException.ThrowIf(_provider is null, typeof(IReferenceService)); 209IComponent? IReferenceService.GetComponent(object reference) 228string? IReferenceService.GetName(object reference) 247object? IReferenceService.GetReference(string name) 266object[] IReferenceService.GetReferences() 282object[] IReferenceService.GetReferences(Type baseType)
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (2)
312IReferenceService? referenceService = manager.GetService<IReferenceService>();
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (2)
1688if (manager.GetService<IReferenceService>() is { } refSvc) 2443name = manager.GetService<IReferenceService>()?.GetName(value);
System\ComponentModel\Design\Serialization\ComponentCache.cs (2)
132if (_serManager.TryGetService(out IReferenceService? rs)) 165if (_serManager.TryGetService(out IReferenceService? rs))
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.SerializationResourceManager.cs (1)
734if (nameBase is null && manager.TryGetService(out IReferenceService? referenceService))
System\ComponentModel\Design\UndoEngine.cs (1)
255if (TryGetService(out IReferenceService? rs))
System\ComponentModel\Design\UndoEngine.UndoUnit.ChangeUndoEvent.cs (1)
113if (engine.TryGetService(out IReferenceService? rs))
System\ComponentModel\Design\UndoEngine.UndoUnit.cs (2)
254if (GetService(typeof(IReferenceService)) is IReferenceService rs)
System.Windows.Forms.Design.Tests (5)
System\ComponentModel\Design\DesignSurfaceTests.cs (5)
249Assert.IsAssignableFrom<IReferenceService>(container.GetService(typeof(IReferenceService))); 299[InlineData(typeof(IReferenceService))] 1517Assert.IsAssignableFrom<IReferenceService>(surface.GetService(typeof(IReferenceService)));