JsonMetadataServices.CreateValueInfo<T> Method

Definition

Creates metadata for a primitive or a type with a custom converter.

C#
public static System.Text.Json.Serialization.Metadata.JsonTypeInfo<T> CreateValueInfo<T>(System.Text.Json.JsonSerializerOptions options, System.Text.Json.Serialization.JsonConverter converter);

Type Parameters

T

The generic type definition.

Parameters

options
JsonSerializerOptions

The JsonSerializerOptions to use for serialization and deserialization.

converter
JsonConverter

Returns

A JsonTypeInfo<T> instance representing the type.

Remarks

This API is for use by the output of the System.Text.Json source generator and should not be called directly.

Applies to

Proizvod Verzije
.NET 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)