ActivatorUtilities ActivatorUtilities ActivatorUtilities Class

Definition

Helper code for the various activator services.

public static class ActivatorUtilities
type ActivatorUtilities = class
Public Class ActivatorUtilities
Inheritance
ActivatorUtilitiesActivatorUtilitiesActivatorUtilities

Methods

CreateFactory(Type, Type[]) CreateFactory(Type, Type[]) CreateFactory(Type, Type[])

Create a delegate that will instantiate a type with constructor arguments provided directly and/or from an IServiceProvider.

CreateInstance(IServiceProvider, Type, Object[]) CreateInstance(IServiceProvider, Type, Object[]) CreateInstance(IServiceProvider, Type, Object[])

Instantiate a type with constructor arguments provided directly and/or from an IServiceProvider.

CreateInstance<T>(IServiceProvider, Object[]) CreateInstance<T>(IServiceProvider, Object[]) CreateInstance<T>(IServiceProvider, Object[])

Instantiate a type with constructor arguments provided directly and/or from an IServiceProvider.

GetServiceOrCreateInstance(IServiceProvider, Type) GetServiceOrCreateInstance(IServiceProvider, Type) GetServiceOrCreateInstance(IServiceProvider, Type)

Retrieve an instance of the given type from the service provider. If one is not found then instantiate it directly.

GetServiceOrCreateInstance<T>(IServiceProvider) GetServiceOrCreateInstance<T>(IServiceProvider) GetServiceOrCreateInstance<T>(IServiceProvider)

Retrieve an instance of the given type from the service provider. If one is not found then instantiate it directly.

Applies to