AddSerializer<TObject, TSerializer>()
Maps an object type to a serializer type (using generic type parameters).
Declaration
public void AddSerializer<TObject, TSerializer>() where TSerializer : ISerializer, new()Type Parameters
| Name | Description |
|---|---|
| TObject | The type of the serialized object. |
| TSerializer | The type of the serializer. |
AddSerializer(Type, Type)
Maps an object type to a serializer type.
Declaration
public void AddSerializer(Type objectType, Type serializerType)Parameters
| Type | Name | Description |
|---|---|---|
| Type | objectType | The type of the serialized object. |
| Type | serializerType | The type of the serializer. It must be derived from ISerializer. |