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

    Class ObjectPropertyConverter

    Json converter that serializes and deserializes just one of the json object's properties.

    Inheritance
    System.Object
    ObjectPropertyConverter
    Namespace: TehGM.Wolfringo.Messages.Serialization.Internal
    Assembly: Wolfringo.Core.dll
    Syntax
    public class ObjectPropertyConverter : JsonConverter

    Constructors

    | Improve this Doc View Source

    ObjectPropertyConverter(String)

    Json converter that serializes and deserializes just one of the json object's properties.

    Declaration
    public ObjectPropertyConverter(string propertyPath)
    Parameters
    Type Name Description
    System.String propertyPath

    Path of the property to use.

    Methods

    | Improve this Doc View Source

    CanConvert(Type)

    Json converter that serializes and deserializes just one of the json object's properties.

    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 that serializes and deserializes just one of the json object's properties.

    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 that serializes and deserializes just one of the json object's properties.

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