PostSharpAPI ReferencePost­Sharp.​SerializationReference­Type­SerializerCreate­Instance
Open sandboxFocus

ReferenceTypeSerializer.CreateInstance Method

CreateInstance(Type, IArgumentsReader)

Creates an instance of the given type.

Declaration
public abstract object CreateInstance(Type type, IArgumentsReader constructorArguments)
Parameters
Type Name Description
System.Type type

Type of the instance to be created.

IArgumentsReader constructorArguments

Gives access to arguments required to create the instance.

Returns
Type Description
Object

An instance of type type initialized using constructorArguments.

Implements
ISerializer.CreateInstance(Type, IArgumentsReader)