<PackageReference Include="System.Text.Json" Version="6.0.11" />

JsonCollectionConverter<TCollection, TElement>

abstract class JsonCollectionConverter<TCollection, TElement> : JsonResumableConverter<TCollection>
Base class for all collections. Collections are assumed to implement IEnumerable<T> or a variant thereof e.g. IAsyncEnumerable<T>.

protected static JsonConverter<TElement> GetElementConverter(JsonTypeInfo elementTypeInfo)

protected static JsonConverter<TElement> GetElementConverter(ref WriteStack state)

protected abstract void Add(TElement& modreq(System.Runtime.InteropServices.InAttribute) value, ref ReadStack state)

protected virtual void ConvertCollection(ref ReadStack state, JsonSerializerOptions options)

protected abstract void CreateCollection(ref Utf8JsonReader reader, ref ReadStack state, JsonSerializerOptions options)

protected abstract bool OnWriteResume(Utf8JsonWriter writer, TCollection value, JsonSerializerOptions options, ref WriteStack state)