PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Serialization Namespace / Reference­Type­Serializer Class / Reference­Type­Serializer Methods / Reference­Type­Serializer.​Serialize­Object Method

ReferenceTypeSerializer.SerializeObject Method

Serializes an object

Namespace:  PostSharp.Serialization
Assembly:  PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public abstract void SerializeObject(
	Object obj,
	IArgumentsWriter constructorArguments,
	IArgumentsWriter initializationArguments
)

Parameters

obj
Type: System.Object
constructorArguments
Type: PostSharp.Serialization.IArgumentsWriter
Gives access to arguments that will be passed to the CreateInstance(Type, IArgumentsReader) method during deserialization.
initializationArguments
Type: PostSharp.Serialization.IArgumentsWriter
Gives access to arguments that will be passed to the DeserializeFields(Object, IArgumentsReader) method during deserialization.
See Also