PostSharpAPI ReferencePost­Sharp.​SerializationValue­Type­Serializer<T>ISerializer.​Create­Instance
Open sandboxFocus

ValueTypeSerializer<T>.ISerializer.CreateInstance Method

ISerializer.CreateInstance(Type, IArgumentsReader)

Creates an instance of the given type.

Declaration
object ISerializer.CreateInstance(Type type, IArgumentsReader constructorArguments)
Parameters
Type Name Description
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)
Remarks

This method is invoked during deserialization. If IsTwoPhase is true, the DeserializeFields(ref Object, IArgumentsReader) method is called later to complete deserialization.