Share via


Sys.StringBuilder toString Method

Creates a string from the contents of a Sys.StringBuilder instance, and optionally inserts a delimiter between each element of the created string.

var stringBuilderVar = new Sys.StringBuilder( string );
var stringVar = stringBuilderVar.toString( separator );

Arguments

  • separator
    (Optional) A string to append between each element of the string that is returned.

Return Value

A string representation of the StringBuilder instance. If separator is specified, the delimiter string is inserted between each element of the returned string.

Remarks

Use the toString method to create a string from the contents of a StringBuilder instance. Use the toString method with the optional separator parameter to insert a specified string delimiter between each element of the created string.

See Also

Reference

Sys.StringBuilder Class

Other Resources

Language Reference