Class ReferenceConverter
Rules for reference serialization (keep id only)
Inherited Members
JsonConverter.CanRead
JsonConverter.CanWrite
Namespace: GGL.DB.Reference
Assembly: GGL.dll
Syntax
public class ReferenceConverter : JsonConverter<Reference>
Methods
| Edit this page View SourceReadJson(JsonReader, Type, Reference, bool, JsonSerializer)
Reads the JSON representation of the object.
Declaration
public override Reference ReadJson(JsonReader reader, Type objectType, Reference existingValue, bool hasExistingValue, JsonSerializer serializer)
Parameters
Type | Name | Description |
---|---|---|
JsonReader | reader | The Newtonsoft.Json.JsonReader to read from. |
Type | objectType | Type of the object. |
Reference | existingValue | The existing value of object being read. If there is no existing value then |
bool | hasExistingValue | The existing value has a value. |
JsonSerializer | serializer | The calling serializer. |
Returns
Type | Description |
---|---|
Reference | The object value. |
Overrides
| Edit this page View SourceWriteJson(JsonWriter, Reference, JsonSerializer)
Writes the JSON representation of the object.
Declaration
public override void WriteJson(JsonWriter writer, Reference value, JsonSerializer serializer)
Parameters
Type | Name | Description |
---|---|---|
JsonWriter | writer | The Newtonsoft.Json.JsonWriter to write to. |
Reference | value | The value. |
JsonSerializer | serializer | The calling serializer. |