25 references to ServiceCreatorCallback
netstandard (1)
netstandard.cs (1)
296
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.
ServiceCreatorCallback
))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
282
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.
ServiceCreatorCallback
))]
System.ComponentModel.TypeConverter (7)
System\ComponentModel\Design\IServiceObjectContainer.cs (2)
26
void AddService(Type serviceType,
ServiceCreatorCallback
callback);
31
void AddService(Type serviceType,
ServiceCreatorCallback
callback, bool promote);
System\ComponentModel\Design\ServiceContainer.cs (5)
83
if (!(serviceInstance is
ServiceCreatorCallback
) && !serviceInstance.GetType().IsCOMObject && !serviceType.IsInstanceOfType(serviceInstance))
99
public void AddService(Type serviceType,
ServiceCreatorCallback
callback)
107
public virtual void AddService(Type serviceType,
ServiceCreatorCallback
callback, bool promote)
190
if (service is
ServiceCreatorCallback
)
192
service = ((
ServiceCreatorCallback
)service)(this, serviceType!);
System.Windows.Forms.Design (9)
System\ComponentModel\Design\DesignerHost.cs (2)
1277
void IServiceContainer.AddService(Type serviceType,
ServiceCreatorCallback
callback)
1283
void IServiceContainer.AddService(Type serviceType,
ServiceCreatorCallback
callback, bool promote)
System\ComponentModel\Design\DesignerHost.Site.cs (2)
116
void IServiceContainer.AddService(Type serviceType,
ServiceCreatorCallback
callback)
124
void IServiceContainer.AddService(Type serviceType,
ServiceCreatorCallback
callback, bool promote)
System\ComponentModel\Design\DesignSurface.cs (1)
37
ServiceCreatorCallback
callback = new(OnCreateService);
System\ComponentModel\Design\DesignSurfaceManager.cs (1)
35
ServiceCreatorCallback
callback = new(OnCreateService);
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (1)
585
ServiceCreatorCallback
callback = new(OnCreateService);
System\ComponentModel\Design\ServiceContainerExtensions.cs (1)
11
public static void AddService<T>(this IServiceContainer serviceContainer,
ServiceCreatorCallback
callback) =>
System\Windows\Forms\Design\DocumentDesigner.cs (1)
694
ServiceCreatorCallback
callback = new(OnCreateService);
System.Windows.Forms.Design.Tests (7)
System\ComponentModel\Design\DesignerHostTests.cs (7)
1142
ServiceCreatorCallback
callback = (c, serviceType) =>
1176
ServiceCreatorCallback
callback = (c, serviceType) =>
1215
ServiceCreatorCallback
callback = (c, serviceType) =>
1757
ServiceCreatorCallback
callback = (container, serviceType) => service;
1772
ServiceCreatorCallback
callback = (container, serviceType) => service;
1785
ServiceCreatorCallback
callback = (container, service) => new object();
2915
ServiceCreatorCallback
callback = (container, service) => new object();