Open sandboxFocus

Interface ISerializer

Defines the semantics of an object serializer.

Namespace: PostSharp.Serialization
Assembly: PostSharp.dll
Syntax
[InternalImplement]
public interface ISerializer

Properties

Name Description
IsTwoPhase

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.

Methods

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