Class TypeJsonConverter
Class TypeJsonConverter
is used internally by Type. For technical reasons, this class must be publicly exposed. It is
not meant to be used by users of Jtd.Jtd, and may change without notice.
Inheritance
System.Object
System.Text.Json.Serialization.JsonConverter
System.Text.Json.Serialization.JsonConverterFactory
TypeJsonConverter
Namespace: Jtd.Jtd
Assembly: Jtd.Jtd.dll
Syntax
public class TypeJsonConverter : JsonConverterFactory
Constructors
| Improve this Doc View SourceTypeJsonConverter()
Declaration
public TypeJsonConverter()
Methods
| Improve this Doc View SourceCanConvert(Type)
Declaration
public override bool CanConvert(Type typeToConvert)
Parameters
Type | Name | Description |
---|---|---|
System.Type | typeToConvert |
Returns
Type | Description |
---|---|
System.Boolean |
CreateConverter(Type, JsonSerializerOptions)
Declaration
public override JsonConverter CreateConverter(Type typeToConvert, JsonSerializerOptions options)
Parameters
Type | Name | Description |
---|---|---|
System.Type | typeToConvert | |
System.Text.Json.JsonSerializerOptions | options |
Returns
Type | Description |
---|---|
System.Text.Json.Serialization.JsonConverter |