PostSharpAPI ReferencePost­Sharp.​SerializationReference­Type­SerializerSerialize­Object
Open sandboxFocus

ReferenceTypeSerializer.SerializeObject Method

SerializeObject(Object, IArgumentsWriter, IArgumentsWriter)

Serializes an object

Declaration
public abstract void SerializeObject(object obj, IArgumentsWriter constructorArguments, IArgumentsWriter initializationArguments)
Parameters
Type Name Description
Object obj
IArgumentsWriter constructorArguments

Gives access to arguments that will be passed to the CreateInstance(Type, IArgumentsReader) method during deserialization.

IArgumentsWriter initializationArguments

Gives access to arguments that will be passed to the DeserializeFields(Object, IArgumentsReader) method during deserialization.