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: 6.9.11.0 (6.9.11.0)
C#
public interface IActivator
The IActivator type exposes the following members.
Name | Description | |
---|---|---|
CreateInstance |
Creates an instance of a give type.
|
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).