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