SerializerFactoryProvider.AddSerializer<TObject, TSerializer> Method |
Maps an object type to a serializer type (using generic type parameters).
Namespace: PostSharp.Serialization
Assembly: PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public void AddSerializer<TObject, TSerializer>() where TSerializer : new(), ISerializer
Type Parameters
- TObject
- Type of the serialized object.
- TSerializer
- Type of the serializer.