AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="0.9.9.2" />

 Pool

static class Pool
Provides a pool of used / recycled resources.

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

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

Either creates a fresh value builder 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.

public static ISelector ToPool(this CssSelectorConstructor ctor)

Returns the given selector constructor to the pool and gets the constructed selector.

public static CssValue ToPool(this CssValueBuilder vb)

Returns the given value builder to the pool and gets the constructed value.