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

    Class ObjectPropertiesDictionaryConverter<TKey, TValue>

    Json converter using 2 properties of json object as dictionary key and value.

    Inheritance
    System.Object
    Newtonsoft.Json.JsonConverter
    ObjectPropertiesDictionaryConverter<TKey, TValue>
    Inherited Members
    Newtonsoft.Json.JsonConverter.CanRead
    Newtonsoft.Json.JsonConverter.CanWrite
    Namespace: TehGM.Wolfringo.Messages.Serialization.Internal
    Assembly: Wolfringo.Core.dll
    Syntax
    public class ObjectPropertiesDictionaryConverter<TKey, TValue> : JsonConverter
    Type Parameters
    Name Description
    TKey

    Type of the key.

    TValue

    Type of the value.

    Constructors

    | Improve this Doc View Source

    ObjectPropertiesDictionaryConverter()

    Declaration
    public ObjectPropertiesDictionaryConverter()
    | Improve this Doc View Source

    ObjectPropertiesDictionaryConverter(String, String)

    Declaration
    public ObjectPropertiesDictionaryConverter(string keyPropertyPath, string valuePropertyPath)
    Parameters
    Type Name Description
    System.String keyPropertyPath

    Path of property to use as a key. Must

    System.String valuePropertyPath

    Path of property to use as a value.

    Methods

    | Improve this Doc View Source

    CanConvert(Type)

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

    ReadJson(JsonReader, Type, Object, JsonSerializer)

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

    WriteJson(JsonWriter, Object, JsonSerializer)

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