Open sandboxFocus

Interface IActivator

Exposes a method CreateInstance(Type, ActivatorSecurityToken), which allows to create an instance of a type using the Activator facility.

Namespace: PostSharp.Serialization
Assembly: PostSharp.dll
Syntax
public interface IActivator
Remarks

PostSharp generates implementations of this interface in each assembly that contains serializable classes. It allows to create objects in the security context of this assembly (instead of from the security context of PostSharp.dll).

Methods

Name Description
CreateInstance(Type, ActivatorSecurityToken)

Creates an instance of a give type.