EnumConverter Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.StringEnumConverterEnumConverter
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. |