ISerializer.CreateInstance Method |
Namespace: PostSharp.Serialization
Assembly: PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
Object CreateInstance( Type type, IArgumentsReader constructorArguments )
Parameters
- type
- Type: System.Type
Type of the instance to be created. - constructorArguments
- Type: PostSharp.Serialization.IArgumentsReader
Gives access to arguments required to create the instance.
Return Value
Type: ObjectAn instance of type type initialized using constructorArguments.
This method is invoked during deserialization. If IsTwoPhase is true, the DeserializeFields(Object, IArgumentsReader) method is called later to complete deserialization.