AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="0.16.1-alpha-155" />

 StringBuilderPool

public static class StringBuilderPool
Provides a pool of used / recycled resources.
public static int MaxCount { get; set; }

Gets or sets the maximum number of instances - at least 1.

public static int SizeLimit { get; set; }

Gets or sets the max. capacity per instance - at least 85000.

public static StringBuilder Obtain()

Either creates a fresh stringbuilder or gets a (cleaned) used one.

public static string ToPool(this StringBuilder sb)

Returns the given stringbuilder to the pool and gets the current string content.