<PackageReference Include="System.Text.Json" Version="7.0.0-rc.2.22472.3" />

JsonCollectionInfoValues<TCollection>

public sealed class JsonCollectionInfoValues<TCollection>
Provides serialization metadata about a collection type.
public JsonTypeInfo ElementInfo { get; set; }

A JsonTypeInfo instance representing the element type.

public JsonTypeInfo KeyInfo { get; set; }

If a dictionary type, the JsonTypeInfo instance representing the key type.

public JsonNumberHandling NumberHandling { get; set; }

The JsonNumberHandling option to apply to number collection elements.

public Func<TCollection> ObjectCreator { get; set; }

A Func<T> to create an instance of the collection when deserializing.

public Action<Utf8JsonWriter, TCollection> SerializeHandler { get; set; }

An optimized serialization implementation assuming pre-determined JsonSourceGenerationOptionsAttribute defaults.