PostSharp6.5//API Reference/Post­Sharp.​Serialization Namespace/ISerializer Interface

ISerializer Interface

Defines the semantics of an object serializer.

Namespace:  PostSharp.Serialization
Assembly:  PostSharp (in PostSharp.dll) Version: 6.5.8.0 (6.5.8.0)
Syntax
C#
public interface ISerializer

The ISerializer type exposes the following members.

Properties
  NameDescription
Public propertyIsTwoPhase
Determines whether DeserializeFields(Object, IArgumentsReader) should be invoked during deserialization. The value is false if CreateInstance(Type, IArgumentsReader) return fully created object, true otherwise.
Methods
  NameDescription
Public methodConvert
Converts a value into a given target type.
Public methodCreateInstance
Creates an instance of the given type.
Public methodDeserializeFields
Completes the second phase of deserialization by setting fields and other properties.
Public methodSerializeObject
Serializes an object
See Also