StringEnumConverter<TStringEnumType> 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.
JsonConverter for serializing and deserializing string-based enums.
public class StringEnumConverter<TStringEnumType> : Newtonsoft.Json.JsonConverter where TStringEnumType : IStringEnum
type StringEnumConverter<'StringEnumType (requires 'StringEnumType :> IStringEnum)> = class
inherit JsonConverter
Public Class StringEnumConverter(Of TStringEnumType)
Inherits JsonConverter
Type Parameters
- TStringEnumType
The actual type implementing IStringEnum.
- Inheritance
-
Newtonsoft.Json.JsonConverterStringEnumConverter<TStringEnumType>
Constructors
StringEnumConverter<TStringEnumType>() |
Methods
CanConvert(Type) | Newtonsoft.Json.JsonConverter.CanConvert(System.Type) |
ReadJson(JsonReader, Type, Object, JsonSerializer) | Newtonsoft.Json.JsonConverter.ReadJson(Newtonsoft.Json.JsonReader,System.Type,System.Object,Newtonsoft.Json.JsonSerializer) |
WriteJson(JsonWriter, Object, JsonSerializer) | Newtonsoft.Json.JsonConverter.WriteJson(Newtonsoft.Json.JsonWriter,System.Object,Newtonsoft.Json.JsonSerializer) |