PostSharpAPI ReferencePost­Sharp.​SerializationISerializer
Open sandboxFocus

ISerializer Interface

Defines the semantics of an object serializer.

Namespace: PostSharp.Serialization
Assembly: PostSharp.dll
public interface ISerializer


Name Description

Determines whether DeserializeFields(ref Object, IArgumentsReader) should be invoked during deserialization. The value is false if CreateInstance(Type, IArgumentsReader) return fully created object, true otherwise.


Name Description
Convert(Object, Type)

Converts a value into a given target type.

CreateInstance(Type, IArgumentsReader)

Creates an instance of the given type.

DeserializeFields(ref Object, IArgumentsReader)

Completes the second phase of deserialization by setting fields and other properties.

SerializeObject(Object, IArgumentsWriter, IArgumentsWriter)

Serializes an object