Provides instances of the ISerializerFactory interface for object types that have been previously registered using AddSerializer(Type, Type).
Implements
Namespace: PostSharp.Serialization
Assembly: PostSharp.dll
Syntax
public class SerializerFactoryProvider : ISerializerFactoryProviderConstructors
| Name | Description |
|---|---|
| SerializerFactoryProvider(ISerializerFactoryProvider, ActivatorProvider) | Initializes a new SerializerFactoryProvider. |
Fields
| Name | Description |
|---|---|
| BuiltIn | Gets the SerializerFactoryProvider instance that supports built-in types. |
Properties
| Name | Description |
|---|---|
| NextProvider | Gets the next provider in the chain. |
Methods
| 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(Type) | Gets the instance of ISerializerFactory |
| GetSurrogateType(Type) | Gets the surrogate type for a given object type. |
| MakeReadOnly() | Forbids further changes in the current SerializerFactoryProvider. |