WeaverUtilities.

AppendLineConst(StringBuilder, Object) Method

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, Object value)

Parameters

Name Type Description
text StringBuilder
value Object

Return Value

Type Description
StringBuilder