ISerializer Interface |
Defines the semantics of an object serializer.
Namespace: PostSharp.Serialization
Assembly: PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public interface ISerializer
The ISerializer type exposes the following members.
Name | Description | |
---|---|---|
IsTwoPhase |
Determines whether DeserializeFields(Object, IArgumentsReader) should be invoked during deserialization.
The value is false if CreateInstance(Type, IArgumentsReader) return fully created object, true otherwise.
|
Name | Description | |
---|---|---|
Convert |
Converts a value into a given target type.
| |
CreateInstance |
Creates an instance of the given type.
| |
DeserializeFields |
Completes the second phase of deserialization by setting fields and other properties.
| |
SerializeObject |
Serializes an object
|