<PackageReference Include="Microsoft.Extensions.Primitives" Version="10.0.0-preview.6.25358.103" />

InplaceStringBuilder

public struct InplaceStringBuilder
Provides a mechanism for fast, non-allocating string concatenation.
public int Capacity { get; set; }

Gets the number of characters that the current InplaceStringBuilder object can contain.

public InplaceStringBuilder(int capacity)

Initializes a new instance of the InplaceStringBuilder class.

public void Append(string value)

Appends a string to the end of the current InplaceStringBuilder instance.

public void Append(StringSegment segment)

Appends a string segment to the end of the current InplaceStringBuilder instance.

public void Append(string value, int offset, int count)

Appends a substring to the end of the current InplaceStringBuilder instance.

public void Append(char c)

Appends a character to the end of the current InplaceStringBuilder instance.