PostSharp6.5//API Reference/Post­Sharp.​Serialization Namespace/Serializer­Factory­Provider Class

SerializerFactoryProvider Class

Provides instances of the ISerializerFactory interface for object types that have been previously registered using AddSerializer(Type, Type).
Inheritance Hierarchy
System.Object
  PostSharp.Serialization.SerializerFactoryProvider

Namespace:  PostSharp.Serialization
Assembly:  PostSharp (in PostSharp.dll) Version: 6.5.8.0 (6.5.8.0)
Syntax
C#
public class SerializerFactoryProvider : ISerializerFactoryProvider

The SerializerFactoryProvider type exposes the following members.

Constructors
  NameDescription
Public methodSerializerFactoryProvider
Initializes a new SerializerFactoryProvider.
Properties
  NameDescription
Public propertyNextProvider
Gets the next provider in the chain.
Methods
  NameDescription
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.
Fields
  NameDescription
Public fieldStatic memberBuiltIn
Gets the SerializerFactoryProvider instance that supports built-in types.
See Also