SerializerFactoryProvider Class |
Provides instances of the ISerializerFactory interface for object types that have been previously registered
using AddSerializer(Type, Type).
Namespace: PostSharp.Serialization
Assembly: PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public class SerializerFactoryProvider : ISerializerFactoryProvider
The SerializerFactoryProvider type exposes the following members.
Name | Description | |
---|---|---|
SerializerFactoryProvider |
Initializes a new SerializerFactoryProvider.
|
Name | Description | |
---|---|---|
NextProvider |
Gets the next provider in the chain.
|
Name | Description | |
---|---|---|
AddSerializer(Type, Type) |
Maps an object type to a serializer type.
| |
AddSerializer<TObject, TSerializer>() |
Maps an object type to a serializer type (using generic type parameters).
| |
GetSerializerFactory |
Gets the instance of ISerializerFactory | |
GetSurrogateType |
Gets the surrogate type for a given object type.
| |
MakeReadOnly |
Forbids further changes in the current SerializerFactoryProvider.
|
Name | Description | |
---|---|---|
BuiltIn |
Gets the SerializerFactoryProvider instance that supports built-in types.
|