PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Serialization Namespace / Serializer­Factory­Provider Class / Serializer­Factory­Provider Methods

SerializerFactoryProvider Methods

The SerializerFactoryProvider type exposes the following members.

Public methodAddSerializer(Type, Type)
Maps an object type to a serializer type.
Public methodAddSerializer<TObject, TSerializer>()
Maps an object type to a serializer type (using generic type parameters).
Public methodGetSerializerFactory
Gets the instance of ISerializerFactory
Public methodGetSurrogateType
Gets the surrogate type for a given object type.
Public methodMakeReadOnly
Forbids further changes in the current SerializerFactoryProvider.
See Also