Summary
This method allocates no garbage unlike
System.Text.StringBuilder.AppendLine
which allocates 30 bytes
of garbage per call for accessing System.Environment.NewLine
(according to Unity's profiler).
- Assembly
- Weaver
.dll - Namespace
- Weaver
- Containing Type
- WeaverUtilities
Syntax
public static StringBuilder AppendLineConst(this StringBuilder text)
Parameters
Name | Type | Description |
---|---|---|
text | StringBuilder |
Return Value
Type | Description |
---|---|
StringBuilder |