ערוך

שתף באמצעות


JsonStringEnumConverter<TEnum>.CreateConverter Method

Definition

Creates a converter for a specified type.

public:
 override System::Text::Json::Serialization::JsonConverter ^ CreateConverter(Type ^ typeToConvert, System::Text::Json::JsonSerializerOptions ^ options);
public override sealed System.Text.Json.Serialization.JsonConverter CreateConverter (Type typeToConvert, System.Text.Json.JsonSerializerOptions options);
public override sealed System.Text.Json.Serialization.JsonConverter? CreateConverter (Type typeToConvert, System.Text.Json.JsonSerializerOptions options);
override this.CreateConverter : Type * System.Text.Json.JsonSerializerOptions -> System.Text.Json.Serialization.JsonConverter
Public Overrides NotOverridable Function CreateConverter (typeToConvert As Type, options As JsonSerializerOptions) As JsonConverter

Parameters

typeToConvert
Type

The type handled by the converter.

options
JsonSerializerOptions

The serialization options to use.

Returns

A converter for which T is compatible with typeToConvert.

Applies to