Table of Contents

Method GetStringAndRelease

Namespace
KZDev.PerfUtils
Assembly
KZDev.PerfUtils.dll

GetStringAndRelease(StringBuilder)

Returns the stringBuilder instance to the cache and returns the string value of the stringBuilder.

public static string GetStringAndRelease(StringBuilder stringBuilder)

Parameters

stringBuilder StringBuilder

The StringBuilder instance to release and get the string value of.

Returns

string

GetStringAndRelease(StringBuilder, int, int)

Returns the stringBuilder instance to the cache and returns the value of a substring of this instance as a string by using the specified starting position and length of the substring.

public static string GetStringAndRelease(StringBuilder stringBuilder, int startIndex, int length)

Parameters

stringBuilder StringBuilder

The StringBuilder instance to release and get the substring value of.

startIndex int

The starting position of the substring in this instance.

length int

The length of the substring.

Returns

string