Share via


Sys.StringBuilder Constructor

Initializes a new instance of the Sys.StringBuilder class.

var stringBuilderVar = new StringBuilder(initialText);

Arguments

  • initialText
    (Optional) The string that is used to initialize the value of the instance. If the value is null, the new StringBuilder instance will contain an empty string ("").

Remarks

You can specify a string in the optional initialText parameter to initialize the value of the StringBuilder instance.

See Also

Reference

Sys.StringBuilder Class

new Operator

Other Resources

Language Reference