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

    Class ObjectDictionaryConverter<TKey, TValue>

    Json converter converting Json object into dictionary value, and using one of it's properties as the key.

    Inheritance
    System.Object
    ObjectDictionaryConverter<TKey, TValue>
    Namespace: TehGM.Wolfringo.Messages.Serialization.Internal
    Assembly: Wolfringo.Core.dll
    Syntax
    public class ObjectDictionaryConverter<TKey, TValue> : JsonConverter
    Type Parameters
    Name Description
    TKey

    Type of the key.

    TValue

    Type of the value.

    Constructors

    | Improve this Doc View Source

    ObjectDictionaryConverter()

    Json converter converting Json object into dictionary value, and using one of it's properties as the key.

    Declaration
    public ObjectDictionaryConverter()
    | Improve this Doc View Source

    ObjectDictionaryConverter(String)

    Json converter converting Json object into dictionary value, and using one of it's properties as the key.

    Declaration
    public ObjectDictionaryConverter(string keyPropertyPath)
    Parameters
    Type Name Description
    System.String keyPropertyPath

    Path of the property to use as a key.

    Methods

    | Improve this Doc View Source

    CanConvert(Type)

    Json converter converting Json object into dictionary value, and using one of it's properties as the key.

    Declaration
    public override bool CanConvert(Type objectType)
    Parameters
    Type Name Description
    System.Type objectType
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    ReadJson(JsonReader, Type, Object, JsonSerializer)

    Json converter converting Json object into dictionary value, and using one of it's properties as the key.

    Declaration
    public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
    Parameters
    Type Name Description
    JsonReader reader
    System.Type objectType
    System.Object existingValue
    JsonSerializer serializer
    Returns
    Type Description
    System.Object
    | Improve this Doc View Source

    WriteJson(JsonWriter, Object, JsonSerializer)

    Json converter converting Json object into dictionary value, and using one of it's properties as the key.

    Declaration
    public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
    Parameters
    Type Name Description
    JsonWriter writer
    System.Object value
    JsonSerializer serializer