Class JsonCharEnumConverter
Converter factory for converting enum types to char
Inherited Members
Namespace: DuetAPI.Utility
Assembly: DuetAPI.dll
Syntax
public class JsonCharEnumConverter : JsonConverterFactory
Methods
CanConvert(Type)
Checks if the given type can be converted
Declaration
public override bool CanConvert(Type typeToConvert)
Parameters
Type | Name | Description |
---|---|---|
Type | typeToConvert | Type to convert |
Returns
Type | Description |
---|---|
bool | If the type can be converted |
Overrides
CreateConverter(Type, JsonSerializerOptions)
Creates a converter for the given type
Declaration
public override JsonConverter CreateConverter(Type type, JsonSerializerOptions options)
Parameters
Type | Name | Description |
---|---|---|
Type | type | |
JsonSerializerOptions | options |
Returns
Type | Description |
---|---|
JsonConverter |