PostSharpAPI ReferencePost­Sharp.​SerializationISerializerSerialize­Object
Open sandboxFocus

ISerializer.SerializeObject Method

SerializeObject(Object, IArgumentsWriter, IArgumentsWriter)

Serializes an object

Declaration
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(ref Object, IArgumentsReader) method during deserialization.