<PackageReference Include="System.Drawing.Common" Version="9.0.8" />

ArrayBuilder<T>

class ArrayBuilder<T>
Array based collection that tries to avoid copying the internal array and caps the maximum capacity.
public void Add(T item)

public T[] ToArray()