Modifica

Condividi tramite


JsonConverterAttribute.CreateConverter(Type) Method

Definition

When overridden in a derived class and ConverterType is null, allows the derived class to create a JsonConverter in order to pass additional state.

public:
 virtual System::Text::Json::Serialization::JsonConverter ^ CreateConverter(Type ^ typeToConvert);
public virtual System.Text.Json.Serialization.JsonConverter? CreateConverter (Type typeToConvert);
public virtual System.Text.Json.Serialization.JsonConverter CreateConverter (Type typeToConvert);
abstract member CreateConverter : Type -> System.Text.Json.Serialization.JsonConverter
override this.CreateConverter : Type -> System.Text.Json.Serialization.JsonConverter
Public Overridable Function CreateConverter (typeToConvert As Type) As JsonConverter

Parameters

typeToConvert
Type

The type of the converter.

Returns

The custom converter.

Applies to