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)
26void AddService(Type serviceType, ServiceCreatorCallback callback); 31void AddService(Type serviceType, ServiceCreatorCallback callback, bool promote);
System\ComponentModel\Design\ServiceContainer.cs (5)
83if (!(serviceInstance is ServiceCreatorCallback) && !serviceInstance.GetType().IsCOMObject && !serviceType.IsInstanceOfType(serviceInstance)) 99public void AddService(Type serviceType, ServiceCreatorCallback callback) 107public virtual void AddService(Type serviceType, ServiceCreatorCallback callback, bool promote) 190if (service is ServiceCreatorCallback) 192service = ((ServiceCreatorCallback)service)(this, serviceType!);
System.Windows.Forms.Design (9)
System\ComponentModel\Design\DesignerHost.cs (2)
1277void IServiceContainer.AddService(Type serviceType, ServiceCreatorCallback callback) 1283void IServiceContainer.AddService(Type serviceType, ServiceCreatorCallback callback, bool promote)
System\ComponentModel\Design\DesignerHost.Site.cs (2)
116void IServiceContainer.AddService(Type serviceType, ServiceCreatorCallback callback) 124void IServiceContainer.AddService(Type serviceType, ServiceCreatorCallback callback, bool promote)
System\ComponentModel\Design\DesignSurface.cs (1)
37ServiceCreatorCallback callback = new(OnCreateService);
System\ComponentModel\Design\DesignSurfaceManager.cs (1)
35ServiceCreatorCallback callback = new(OnCreateService);
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (1)
585ServiceCreatorCallback callback = new(OnCreateService);
System\ComponentModel\Design\ServiceContainerExtensions.cs (1)
11public static void AddService<T>(this IServiceContainer serviceContainer, ServiceCreatorCallback callback) =>
System\Windows\Forms\Design\DocumentDesigner.cs (1)
694ServiceCreatorCallback callback = new(OnCreateService);
System.Windows.Forms.Design.Tests (7)
System\ComponentModel\Design\DesignerHostTests.cs (7)
1142ServiceCreatorCallback callback = (c, serviceType) => 1176ServiceCreatorCallback callback = (c, serviceType) => 1215ServiceCreatorCallback callback = (c, serviceType) => 1757ServiceCreatorCallback callback = (container, serviceType) => service; 1772ServiceCreatorCallback callback = (container, serviceType) => service; 1785ServiceCreatorCallback callback = (container, service) => new object(); 2915ServiceCreatorCallback callback = (container, service) => new object();