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