ReferenceTypeSerializer.CreateInstance Method |
Creates an instance of the given type.
Namespace: PostSharp.Serialization
Assembly: PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public abstract 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.