PostSharp5.0//API Reference/Post­Sharp.​Serialization Namespace/IActivator Interface

IActivator Interface

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

Namespace:  PostSharp.Serialization
Assembly:  PostSharp (in PostSharp.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
public interface IActivator

The IActivator type exposes the following members.

Methods
  NameDescription
Public methodCreateInstance
Creates an instance of a give type.
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).

See Also