Interface ISerializerProvider<TKey, TSerializer>
Utility class for mapping serializers.
Namespace: TehGM.Wolfringo.Messages.Serialization
Assembly: Wolfringo.Core.dll
Syntax
public interface ISerializerProvider<TKey, TSerializer>
Type Parameters
Name | Description |
---|---|
TKey | Type of the serializer key. |
TSerializer | Type of the serializer. |
Properties
| Improve this Doc View SourceFallbackSerializer
Fallback serializer that can be used if key has no mapped serializer.
Declaration
TSerializer FallbackSerializer { get; }
Property Value
Type | Description |
---|---|
TSerializer |
Methods
| Improve this Doc View SourceGetSerializer(TKey)
Gets serializer mapped to the key.
Declaration
TSerializer GetSerializer(TKey key)
Parameters
Type | Name | Description |
---|---|---|
TKey | key | Key to get the serializer for. |
Returns
Type | Description |
---|---|
TSerializer | Found serializer. |