Class ExceptionJsonConverterFactory
JsonConverterFactory that creates converters for any type of Exception.
Inherited Members
Namespace: Tableau.Migration.JsonConverters
Assembly: Tableau.Migration.dll
Syntax
public class ExceptionJsonConverterFactory : JsonConverterFactory
Methods
CanConvert(Type)
When overridden in a derived class, determines whether the converter instance can convert the specified object type.
Declaration
public override bool CanConvert(Type typeToConvert)
Parameters
Type | Name | Description |
---|---|---|
Type | typeToConvert | The type of the object to check whether it can be converted by this converter instance. |
Returns
Type | Description |
---|---|
bool | true if the instance can convert the specified object type; otherwise, false. |
Overrides
CreateConverter(Type, JsonSerializerOptions)
Creates a converter for a specified type.
Declaration
public override JsonConverter CreateConverter(Type typeToConvert, JsonSerializerOptions options)
Parameters
Type | Name | Description |
---|---|---|
Type | typeToConvert | The type handled by the converter. |
JsonSerializerOptions | options | The serialization options to use. |
Returns
Type | Description |
---|---|
JsonConverter | A converter for which |