Table of Contents

Struct StringBuilderScope

Namespace
KZDev.PerfUtils
Assembly
KZDev.PerfUtils.dll

Represents a scope in which a cached Builder instance is retrieved and released back to the cache.

public readonly struct StringBuilderScope : IDisposable
Implements
Inherited Members

Properties

Builder

Gets the Builder instance that was retrieved from the cache for this scope.

Methods

Dispose()
ToString()

Returns the string value of the Builder instance.

ToString(int, int)

Converts the value of a substring of the Builder instance to a string by using the specified starting position and length of the substring.

Operators

implicit operator StringBuilder(in StringBuilderScope)

Operator to implicitly convert the StringBuilderScope instance to a Builder for use in code that expects a Builder.