StringEnumConverter<TStringEnumType> Class

Definition

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.JsonConverter
StringEnumConverter<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)

Applies to