Edit

Share via


JsonConverterFactory Class

Definition

Supports converting several types by using a factory pattern.

public ref class JsonConverterFactory abstract : System::Text::Json::Serialization::JsonConverter
public abstract class JsonConverterFactory : System.Text.Json.Serialization.JsonConverter
type JsonConverterFactory = class
    inherit JsonConverter
Public MustInherit Class JsonConverterFactory
Inherits JsonConverter
Inheritance
JsonConverterFactory
Derived

Remarks

This is useful for converters supporting generics, such as a converter for List<T>.

For more information, see How to write custom converters for JSON serialization.

Constructors

JsonConverterFactory()

When overridden in a derived class, initializes a new instance of the JsonConverterFactory class.

Properties

Type

Gets the type being converted by the current converter instance.

Type

Gets the type being converted by the current converter instance.

(Inherited from JsonConverter)

Methods

CanConvert(Type)

When overridden in a derived class, determines whether the converter instance can convert the specified object type.

(Inherited from JsonConverter)
CreateConverter(Type, JsonSerializerOptions)

Creates a converter for a specified type.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to