Method GetStringAndRelease
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
StringBuilderThe StringBuilder instance to release and get the string value of.
Returns
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
StringBuilderThe StringBuilder instance to release and get the substring value of.
startIndex
intThe starting position of the substring in this instance.
length
intThe length of the substring.