Wolfringo Wolfringo
Wolfringo Wolfringo
Wolfringo (c) 2020 TehGM
DocFX, DiscordFX theme.
Search Results for

    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 Source

    FallbackSerializer

    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 Source

    GetSerializer(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.

    Extension Methods

    SerializerProviderExtensions.GetSerializer<TKey, TSerializer>(ISerializerProvider<TKey, TSerializer>, TKey)
    SerializerProviderExtensions.TryFindSerializer<TKey, TSerializer>(ISerializerProvider<TKey, TSerializer>, TKey, out TSerializer)