55 references to StringBuilderCache
Microsoft.Build (8)
EscapingUtilities.cs (5)
77
StringBuilder unescapedString =
StringBuilderCache
.Acquire(escapedString.Length);
130
return
StringBuilderCache
.GetStringAndRelease(unescapedString);
190
StringBuilder escapedStringBuilder =
StringBuilderCache
.Acquire(unescapedString.Length * 2);
196
return
StringBuilderCache
.GetStringAndRelease(escapedStringBuilder);
200
StringBuilderCache
.Release(escapedStringBuilder);
FileUtilities.cs (2)
1175
StringBuilder sb =
StringBuilderCache
.Acquire();
1191
return
StringBuilderCache
.GetStringAndRelease(sb);
Logging\BaseConsoleLogger.cs (1)
1215
return
StringBuilderCache
.Acquire(capacity);
Microsoft.Build.Engine.OM.UnitTests (7)
EscapingUtilities.cs (5)
77
StringBuilder unescapedString =
StringBuilderCache
.Acquire(escapedString.Length);
130
return
StringBuilderCache
.GetStringAndRelease(unescapedString);
190
StringBuilder escapedStringBuilder =
StringBuilderCache
.Acquire(unescapedString.Length * 2);
196
return
StringBuilderCache
.GetStringAndRelease(escapedStringBuilder);
200
StringBuilderCache
.Release(escapedStringBuilder);
FileUtilities.cs (2)
1175
StringBuilder sb =
StringBuilderCache
.Acquire();
1191
return
StringBuilderCache
.GetStringAndRelease(sb);
Microsoft.Build.Framework (4)
StringBuilderCache.cs (4)
44
StringBuilder sb =
StringBuilderCache
.t_cachedInstance;
45
StringBuilderCache
.t_cachedInstance = null;
92
Debug.Assert(
StringBuilderCache
.t_cachedInstance == null, "Unexpected replacing of other StringBuilder.");
93
StringBuilderCache
.t_cachedInstance = sb;
Microsoft.Build.Framework.UnitTests (5)
EscapingUtilities.cs (5)
77
StringBuilder unescapedString =
StringBuilderCache
.Acquire(escapedString.Length);
130
return
StringBuilderCache
.GetStringAndRelease(unescapedString);
190
StringBuilder escapedStringBuilder =
StringBuilderCache
.Acquire(unescapedString.Length * 2);
196
return
StringBuilderCache
.GetStringAndRelease(escapedStringBuilder);
200
StringBuilderCache
.Release(escapedStringBuilder);
Microsoft.Build.Tasks.Core (15)
AssemblyDependency\ResolveAssemblyReference.cs (2)
1115
StringBuilder logConflict =
StringBuilderCache
.Acquire();
1131
string output =
StringBuilderCache
.GetStringAndRelease(logConflict);
CreateCSharpManifestResourceName.cs (2)
112
var manifestName =
StringBuilderCache
.Acquire();
209
return
StringBuilderCache
.GetStringAndRelease(manifestName);
CreateVisualBasicManifestResourceName.cs (2)
110
var manifestName =
StringBuilderCache
.Acquire();
190
return
StringBuilderCache
.GetStringAndRelease(manifestName);
EscapingUtilities.cs (5)
77
StringBuilder unescapedString =
StringBuilderCache
.Acquire(escapedString.Length);
130
return
StringBuilderCache
.GetStringAndRelease(unescapedString);
190
StringBuilder escapedStringBuilder =
StringBuilderCache
.Acquire(unescapedString.Length * 2);
196
return
StringBuilderCache
.GetStringAndRelease(escapedStringBuilder);
200
StringBuilderCache
.Release(escapedStringBuilder);
Exec.cs (2)
606
fileName =
StringBuilderCache
.Acquire(batchFileForCommandLine.Length);
618
batchFileForCommandLine =
StringBuilderCache
.GetStringAndRelease(fileName);
FileUtilities.cs (2)
1175
StringBuilder sb =
StringBuilderCache
.Acquire();
1191
return
StringBuilderCache
.GetStringAndRelease(sb);
Microsoft.Build.Utilities.Core (7)
EscapingUtilities.cs (5)
77
StringBuilder unescapedString =
StringBuilderCache
.Acquire(escapedString.Length);
130
return
StringBuilderCache
.GetStringAndRelease(unescapedString);
190
StringBuilder escapedStringBuilder =
StringBuilderCache
.Acquire(unescapedString.Length * 2);
196
return
StringBuilderCache
.GetStringAndRelease(escapedStringBuilder);
200
StringBuilderCache
.Release(escapedStringBuilder);
FileUtilities.cs (2)
1175
StringBuilder sb =
StringBuilderCache
.Acquire();
1191
return
StringBuilderCache
.GetStringAndRelease(sb);
MSBuild (9)
CommandLineSwitches.cs (2)
887
StringBuilder sb =
StringBuilderCache
.Acquire();
892
CommandLineSwitchException.Throw("SwitchErrorWithArguments", _badCommandLineArg, ResourceUtilities.GetResourceString(_errorMessage), _commandLine,
StringBuilderCache
.GetStringAndRelease(sb));
EscapingUtilities.cs (5)
77
StringBuilder unescapedString =
StringBuilderCache
.Acquire(escapedString.Length);
130
return
StringBuilderCache
.GetStringAndRelease(unescapedString);
190
StringBuilder escapedStringBuilder =
StringBuilderCache
.Acquire(unescapedString.Length * 2);
196
return
StringBuilderCache
.GetStringAndRelease(escapedStringBuilder);
200
StringBuilderCache
.Release(escapedStringBuilder);
FileUtilities.cs (2)
1175
StringBuilder sb =
StringBuilderCache
.Acquire();
1191
return
StringBuilderCache
.GetStringAndRelease(sb);