DotNext by .NET Foundation and Contributors

<PackageReference Include="DotNext" Version="5.14.0" />

 InterpolatedString

public static class InterpolatedString
Provides factory methods to create interpolated strings efficiently.
public static MemoryOwner<char> Interpolate(MemoryAllocator<char> allocator, IFormatProvider provider, ref PoolingInterpolatedStringHandler handler)

Formats interpolated string as a rented buffer of characters.

public static MemoryOwner<char> Interpolate(MemoryAllocator<char> allocator, ref PoolingInterpolatedStringHandler handler)

Formats interpolated string as a rented buffer of characters.