PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Serialization Namespace / ISerializer Interface / ISerializer Methods / ISerializer.​Serialize­Object Method

ISerializer.SerializeObject Method

Serializes an object

Namespace:  PostSharp.Serialization
Assembly:  PostSharp (in PostSharp.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
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