Open sandboxFocus

Interface IActivator

Exposes a method CreateInstance(Type, ActivatorSecurityToken), which allows creating 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 creating 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 given type.