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
stringBuilderStringBuilderThe 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
stringBuilderStringBuilderThe StringBuilder instance to release and get the substring value of.
startIndexintThe starting position of the substring in this instance.
lengthintThe length of the substring.