Metalama 1.0 / / Metalama Documentation / Aspect API / Metalama.​Framework.​Serialization / ISerializer

Interface ISerializer

Defines the semantics of an object serializer.

Namespace: Metalama.Framework.Serialization
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public interface ISerializer

Properties

Name Description
IsTwoPhase

Gets a value indicating 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.