GetActivator(Type)
Gets an instance of a given class implementing the IActivator interface.
Declaration
public IActivator GetActivator(Type type)Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | A type implementing the IActivator interface. |
Returns
| Type | Description |
|---|---|
| IActivator | An instance of type |
Remarks
On .NET, this method returns null. The reflection of .NET does not check the accessibility of a type, so the
activator that the weaver generates in an assembly is not needed to instantiate a type that is not public.