Zum Hauptinhalt springen

RtNewtonsoftAttributesConverter

Namespace: Meshmakers.Octo.Runtime.Contracts.Serialization

Deserializes a dictionary of attributes, where the value can be a RtRecord.

public class RtNewtonsoftAttributesConverter : JsonConverter<Dictionary<String, Object>>

Inheritance Object → JsonConverter → JsonConverter<Dictionary<String, Object>> → RtNewtonsoftAttributesConverter

Properties​

CanRead​

public bool CanRead { get; }

Property Value​

Boolean

CanWrite​

public bool CanWrite { get; }

Property Value​

Boolean

Constructors​

RtNewtonsoftAttributesConverter()​

public RtNewtonsoftAttributesConverter()

Methods​

ReadJson(JsonReader, Type, Dictionary<String, Object>, Boolean, JsonSerializer)​

public Dictionary<string, object> ReadJson(JsonReader reader, Type objectType, Dictionary<string, object> existingValue, bool hasExistingValue, JsonSerializer serializer)

Parameters​

reader JsonReader

objectType Type

existingValue Dictionary<String, Object>

hasExistingValue Boolean

serializer JsonSerializer

Returns​

Dictionary<String, Object>

WriteJson(JsonWriter, Dictionary<String, Object>, JsonSerializer)​

public void WriteJson(JsonWriter writer, Dictionary<string, object> value, JsonSerializer serializer)

Parameters​

writer JsonWriter

value Dictionary<String, Object>

serializer JsonSerializer