Show / Hide Table of Contents

Class FeatureDescriptorJsonConverter

Custom serializer for FeatureDescriptor objects

Inheritance
System.Object
FeatureDescriptorJsonConverter
Namespace: SigStat.Common.Helpers
Assembly: SigStat.Common.dll
Syntax
public class FeatureDescriptorJsonConverter : JsonConverter

Methods

| Improve this Doc View Source

CanConvert(Type)

Tells if the current object is of the correct type

Declaration
public override bool CanConvert(Type objectType)
Parameters
Type Name Description
Type objectType

The type of the object

Returns
Type Description
System.Boolean

If the object can be converted or not

| Improve this Doc View Source

ReadJson(JsonReader, Type, Object, JsonSerializer)

Overwrite of the method Deserializes the FeatureDescriptor json created by the this class

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

WriteJson(JsonWriter, Object, JsonSerializer)

Overwrite of the method Serializes the FeatureDescriptor to json with type depending on if it was serialized earlier or not

Declaration
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
Parameters
Type Name Description
JsonWriter writer
System.Object value
JsonSerializer serializer
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX