PostSharpAPI ReferencePost­Sharp.​SerializationIActivatorCreate­Instance
Open sandboxFocus

IActivator.CreateInstance Method

CreateInstance(Type, ActivatorSecurityToken)

Creates an instance of a give type.

Declaration
object CreateInstance(Type objectType, ActivatorSecurityToken securityToken)
Parameters
Type Name Description
System.Type objectType

Type of object whose an instance is requested.

ActivatorSecurityToken securityToken

A security token.

Returns
Type Description
Object

A new instance of type objectType.

Remarks

For security reasons, implementations should throw an exception or return null if securityToken is nuill.