Share via


MetricUnitConverter Class

Definition

Defines values for MetricUnit.

public sealed class MetricUnitConverter : Newtonsoft.Json.JsonConverter
type MetricUnitConverter = class
    inherit JsonConverter
Public NotInheritable Class MetricUnitConverter
Inherits JsonConverter
Inheritance
Newtonsoft.Json.JsonConverter
MetricUnitConverter

Constructors

MetricUnitConverter()

Methods

CanConvert(Type)

Returns if objectType can be converted to MetricUnit by the converter.

ReadJson(JsonReader, Type, Object, JsonSerializer)

Overrides ReadJson and converts token to MetricUnit.

WriteJson(JsonWriter, Object, JsonSerializer)

Overriding WriteJson for MetricUnit for serialization.

Applies to