PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Serialization Namespace / Activator­Provider Class / Activator­Provider Methods / Activator­Provider.​Get­Activator Method

ActivatorProvider.GetActivator Method

Gets an instance of a given class implementing the IActivator interface.

Namespace:  PostSharp.Serialization
Assembly:  PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public IActivator GetActivator(
	Type type
)

Parameters

type
Type: System.Type
A type implementing the IActivator interface.

Return Value

Type: IActivator
An instance of type type.
See Also