Sdílet prostřednictvím


EnumConverter Class

Definition

Handles resolving interfaces to the correct derived class during serialization/deserialization.

public class EnumConverter : Newtonsoft.Json.Converters.StringEnumConverter
type EnumConverter = class
    inherit StringEnumConverter
Public Class EnumConverter
Inherits StringEnumConverter
Inheritance
Newtonsoft.Json.Converters.StringEnumConverter
EnumConverter

Constructors

EnumConverter()

Constructs a new EnumConverter.

Properties

CanWrite

Whether the object can be serialized to a request body.

Methods

CanConvert(Type)

Checks if the given type can be converted into an enum. All types can be converted.

ReadJson(JsonReader, Type, Object, JsonSerializer)

Deserializes the object to the correct type.

WriteJson(JsonWriter, Object, JsonSerializer)

Serializes the object into a JSON string.

Applies to