PostSharpAPI ReferencePost­Sharp.​SerializationIActivator
Open sandboxFocus

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.dll
public interface IActivator

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).


Name Description
CreateInstance(Type, ActivatorSecurityToken)

Creates an instance of a give type.