AddSerializer Method
AddSerializer<TSerialized>(ICompactSerializer<TSerialized>)
Adds a serializer.
Declaration
public void AddSerializer<TSerialized>(ICompactSerializer<TSerialized> serializer) where TSerialized : notnull
Parameters
ICompactSerializer<TSerialized> | serializer | The compact serializer. |
Type Parameters
TSerialized | The serialized type. |
Exceptions
ArgumentNullException | The |
ConfigurationException | The operation conflicts with information that were already provided. |
AddSerializer(ICompactSerializer)
Adds a serializer.
Declaration
public void AddSerializer(ICompactSerializer serializer)
Parameters
ICompactSerializer | serializer | The serialized type. |
Exceptions
ArgumentNullException | The |
ArgumentException | The |
ConfigurationException | The operation conflicts with information that were already provided. |
AddSerializer<TSerializerSerialized, TSerialized>(ICompactSerializer<TSerializerSerialized>)
Adds a serializer.
Declaration
public void AddSerializer<TSerializerSerialized, TSerialized>(ICompactSerializer<TSerializerSerialized> serializer) where TSerializerSerialized : notnull where TSerialized : TSerializerSerialized
Parameters
ICompactSerializer<TSerializerSerialized> | serializer | The serializer. |
Type Parameters
TSerializerSerialized | The type serialized by the serializer. |
TSerialized | The type for which the serializer is added. |
Exceptions
ArgumentNullException | The |
ConfigurationException | The operation conflicts with information that were already provided. |