Metalama 1.0 / / Metalama Documentation / Aspect API / Metalama.​Framework.​Serialization / Reference­Type­Serializer / Serialize­Object

Method SerializeObject

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.