StringEnumConverterWithDefault<TEnum> 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.
Specialized StringEnumConverter that returns the default enum value instead of throwing if the string cannot be matched to an enum value during deserialization.
public class StringEnumConverterWithDefault<TEnum> : Newtonsoft.Json.Converters.StringEnumConverter where TEnum : struct
type StringEnumConverterWithDefault<'Enum (requires 'Enum : struct)> = class
inherit StringEnumConverter
Public Class StringEnumConverterWithDefault(Of TEnum)
Inherits StringEnumConverter
Type Parameters
- TEnum
- Inheritance
-
Newtonsoft.Json.Converters.StringEnumConverterStringEnumConverterWithDefault<TEnum>
Constructors
| StringEnumConverterWithDefault<TEnum>() |
Methods
| ReadJson(JsonReader, Type, Object, JsonSerializer) |