437 references to StringBuilder
Aspire.Dashboard (5)
ConsoleLogs\AnsiParser.cs (2)
52outputBuilder ??= new StringBuilder(text.Length); 82var outputBuilder = new StringBuilder(text.Length * 2);
ConsoleLogs\UrlParser.cs (1)
27builder ??= new StringBuilder(text.Length * 2);
Extensions\StringExtensions.cs (1)
13var sanitizedBuilder = new StringBuilder(capacity: input.Length);
Utils\DashboardUIHelpers.cs (1)
65static string Repeat(string s, int n) => new StringBuilder(s.Length * n)
Aspire.Dashboard.Components.Tests (1)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
286var value = new StringBuilder(valueLength);
Aspire.Dashboard.Tests (1)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
286var value = new StringBuilder(valueLength);
Aspire.Hosting (1)
ApplicationModel\ReferenceExpression.cs (1)
167var sb = new StringBuilder(input.Length + 4);
Aspire.Hosting.Azure (2)
Utils\ResourceGroupNameHelpers.cs (2)
22var stringBuilder = new StringBuilder(capacity: resourceGroupName.Length); 42var stringBuilder = new StringBuilder(capacity: normalizedString.Length);
BuildActionTelemetryTable (3)
src\Dependencies\Contracts\Contract.InterpolatedStringHandlers.cs (3)
23_stringBuilder = condition ? new StringBuilder(capacity: literalLength) : null!; 41_stringBuilder = condition ? null! : new StringBuilder(capacity: literalLength); 59_stringBuilder = value is null ? new StringBuilder(capacity: literalLength) : null!;
CodeStyleConfigFileGenerator (3)
src\Dependencies\Contracts\Contract.InterpolatedStringHandlers.cs (3)
23_stringBuilder = condition ? new StringBuilder(capacity: literalLength) : null!; 41_stringBuilder = condition ? null! : new StringBuilder(capacity: literalLength); 59_stringBuilder = value is null ? new StringBuilder(capacity: literalLength) : null!;
dotnet-svcutil-lib (46)
FrameworkFork\Microsoft.CodeDom\Compiler\IndentTextWriter.cs (1)
504StringBuilder sb = new StringBuilder(_indent * tabString.Length);
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (5)
442StringBuilder b = new StringBuilder(value.Length + 5); 513StringBuilder b = new StringBuilder(value.Length + 5); 602StringBuilder sb = new StringBuilder(128); 3736StringBuilder sb = new StringBuilder(s.Length + 10); 3795StringBuilder sb = new StringBuilder(128);
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\SqlUtils.cs (9)
821StringBuilder sb = new StringBuilder(20); 839StringBuilder sb = new StringBuilder(20); 858StringBuilder sb = new StringBuilder(16); 991StringBuilder sb = new StringBuilder(10); 999StringBuilder sb = new StringBuilder(33); 1009StringBuilder sb = new StringBuilder(16); 1017StringBuilder sb = new StringBuilder(16); 1026StringBuilder sb = new StringBuilder(39); 1037StringBuilder sb = new StringBuilder(22);
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\XmlBinaryReader.cs (1)
2781sb = new StringBuilder(value.Length + value.Length / 2);
FrameworkFork\Microsoft.Xml\Xml\BufferBuilder.cs (3)
200_stringBuilder = new StringBuilder(count < DefaultSBCapacity ? DefaultSBCapacity : count); 325_stringBuilder = new StringBuilder(_length); 380StringBuilder sb = new StringBuilder(len);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlCharCheckingWriter.cs (7)
418sb = new StringBuilder(str.Length + 5); 433sb = new StringBuilder(str.Length + 5); 446sb = new StringBuilder(str.Length + 5); 496sb = new StringBuilder(len + 5); 511sb = new StringBuilder(len + 5); 524sb = new StringBuilder(len + 5); 567sb = new StringBuilder(text.Length + 5);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (1)
9789norValue = new StringBuilder(len);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextWriter.cs (1)
1142StringBuilder bufBld = new StringBuilder(128);
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlCharacterData.cs (2)
104string newValue = new StringBuilder(capacity).Append(_data).Append(strData).ToString(); 122string newValue = new StringBuilder(capacity).Append(_data).Insert(offset, strData).ToString();
FrameworkFork\Microsoft.Xml\Xml\schema\DtdParser.cs (1)
3668norValue = new StringBuilder(len);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaValidator.cs (1)
218_textValue = new StringBuilder(100);
FrameworkFork\Microsoft.Xml\Xml\schema\XsdDateTime.cs (1)
543StringBuilder sb = new StringBuilder(64);
FrameworkFork\Microsoft.Xml\Xml\schema\XsdDuration.cs (1)
405StringBuilder sb = new StringBuilder(20);
FrameworkFork\Microsoft.Xml\Xml\XmlComplianceUtil.cs (2)
69norValue = new StringBuilder(len); 128norValue = new StringBuilder(len);
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (4)
131bufBld = new StringBuilder(length + 20); 231bufBld = new StringBuilder(length + 20); 268bufBld = new StringBuilder(length + 20); 1719sb = new StringBuilder(value.Length + 4);
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\DiagnosticTraceBase.cs (1)
105StringBuilder encodedText = new StringBuilder(len + 8); //perf optimization, expecting no more than 2 > characters
FrameworkFork\System.ServiceModel\Internals\System\Runtime\UrlUtility.cs (1)
103StringBuilder sb = new StringBuilder(l);
FrameworkFork\System.ServiceModel\System\IdentityModel\SecurityUtils.cs (1)
288StringBuilder str = new StringBuilder(256);
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\X509CertificateValidator.cs (1)
101StringBuilder error = new StringBuilder(128);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceReflector.cs (1)
118System.Text.StringBuilder actionBuilder = new System.Text.StringBuilder(64);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (1)
539StringBuilder str = new StringBuilder(256);
Metrics (1)
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
108_buffer = new StringBuilder(text.Length);
Metrics.Legacy (1)
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
108_buffer = new StringBuilder(text.Length);
Microsoft.AspNetCore.Components (1)
NavigationManagerExtensions.cs (1)
116_builder = new(uriWithoutQueryStringAndHash.Length + additionalCapacity);
Microsoft.AspNetCore.Grpc.JsonTranscoding (2)
src\Grpc\JsonTranscoding\src\Shared\Legacy.cs (2)
274var builder = new StringBuilder(text.Length * 2); 323var result = new StringBuilder(name.Length);
Microsoft.AspNetCore.Grpc.Swagger (2)
src\Grpc\JsonTranscoding\src\Shared\Legacy.cs (2)
274var builder = new StringBuilder(text.Length * 2); 323var result = new StringBuilder(name.Length);
Microsoft.AspNetCore.Http.Abstractions (2)
PathString.cs (2)
105buffer ??= new StringBuilder(value.Length * 3); 139buffer ??= new StringBuilder(value.Length * 3);
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
StaticRouteHandlerModel\EndpointParameter.cs (1)
557var sb = new StringBuilder(s.Length);
Microsoft.AspNetCore.JsonPatch (1)
Internal\ParsedPath.cs (1)
45var sb = new StringBuilder(path.Length);
Microsoft.AspNetCore.JsonPatch.SystemTextJson (1)
Internal\ParsedPath.cs (1)
40var sb = new StringBuilder(path.Length);
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
ExpressionHelper.cs (1)
140var builder = new StringBuilder(length);
Rendering\TagBuilder.cs (1)
177var stringBuffer = new StringBuilder(name.Length);
Microsoft.AspNetCore.Rewrite (4)
PatternSegments\ToLowerSegment.cs (1)
22context.Builder = new StringBuilder(64);
PatternSegments\UrlDecodeSegment.cs (1)
24context.Builder = new StringBuilder(64);
PatternSegments\UrlEncodeSegment.cs (1)
24context.Builder = new StringBuilder(64);
RewriteContext.cs (1)
38internal StringBuilder Builder { get; set; } = new StringBuilder(64);
Microsoft.AspNetCore.WebUtilities (1)
HttpRequestStreamReader.cs (1)
515StringBuilder sb = new StringBuilder(_charsRead - _charBufferIndex);
Microsoft.Build (12)
BackEnd\Components\Scheduler\Scheduler.cs (2)
2432StringBuilder stringBuilder = new StringBuilder(64); 2500StringBuilder prePadString = new StringBuilder(2 * level);
Construction\Solution\SolutionProjectGenerator.cs (1)
259var solutionConfigurationContents = new StringBuilder(1024);
FileMatcher.cs (1)
2171var sb = new StringBuilder(aString.Length);
Graph\GraphBuilder.cs (1)
607var errorMessage = new StringBuilder(projectsInCycle.Select(p => p.Length).Sum());
Logging\BaseConsoleLogger.cs (3)
235StringBuilder result = new StringBuilder((indentLevel * tabWidth) + formattedString.Length); 1155private StringBuilder _sharedStringBuilder = new StringBuilder(0x100); 1247shared = new StringBuilder(capacity);
Logging\TerminalLogger\TerminalLogger.cs (1)
1239StringBuilder builder = new(128);
StringExtensions.cs (1)
38var builder = new StringBuilder(aString.Length - oldValue.Length + newValue.Length);
TaskLoggingHelper.cs (1)
959var builder = new StringBuilder(200);
Utilities\NuGetFrameworkWrapper.cs (1)
169StringBuilder publicKeyTokenString = new(publicKeyToken.Length * 2);
Microsoft.Build.Engine.UnitTests (2)
ConsoleOutputAlignerTests.cs (1)
380public StringBuilder Acquire(int capacity) => new StringBuilder(capacity);
Evaluation\ProjectSdkImplicitImport_Tests.cs (1)
598var result = new StringBuilder(256);
Microsoft.Build.Framework (5)
ReuseableStringBuilder.cs (3)
264returned = new StringBuilder(SelectBracketedCapacity(capacity)); 279returned = new StringBuilder(newCapacity); 334returningBuilder = new StringBuilder(newCapacity);
StringBuilderCache.cs (1)
61StringBuilder stringBuilder = new StringBuilder(capacity);
Telemetry\ActivityExtensions.cs (1)
94var sb = new StringBuilder(hash.Length * 2);
Microsoft.Build.Tasks.CodeAnalysis (4)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
88_builder = new StringBuilder(literalLength + formattedCount);
src\Dependencies\Contracts\Contract.InterpolatedStringHandlers.cs (3)
23_stringBuilder = condition ? new StringBuilder(capacity: literalLength) : null!; 41_stringBuilder = condition ? null! : new StringBuilder(capacity: literalLength); 59_stringBuilder = value is null ? new StringBuilder(capacity: literalLength) : null!;
Microsoft.Build.Tasks.Core (7)
CreateManifestResourceName.cs (1)
382var everettId = new StringBuilder(name.Length);
FileMatcher.cs (1)
2171var sb = new StringBuilder(aString.Length);
GenerateResource.cs (2)
3569StringBuilder name = new StringBuilder(255); 3570StringBuilder value = new StringBuilder(2048);
NativeMethods.cs (1)
1441StringBuilder sDisplayName = new StringBuilder(ilen);
ParserState.cs (1)
101var fullClass = new StringBuilder(1024);
StreamMappedString.cs (1)
372StringBuilder result = new StringBuilder(length);
Microsoft.Build.UnitTests.Shared (2)
ObjectModelHelpers.cs (2)
622StringBuilder sb = new StringBuilder(xml.Length); 1699var sb = new StringBuilder(64);
Microsoft.Build.Utilities.Core (2)
FileMatcher.cs (1)
2171var sb = new StringBuilder(aString.Length);
TaskLoggingHelper.cs (1)
959var builder = new StringBuilder(200);
Microsoft.Build.Utilities.UnitTests (1)
StringExtensions.cs (1)
38var builder = new StringBuilder(aString.Length - oldValue.Length + newValue.Length);
Microsoft.Cci.Extensions (1)
Writers\CSharp\CSDeclarationWriter.Attributes.cs (1)
336StringBuilder sb = new StringBuilder(str.Length + 4);
Microsoft.CodeAnalysis (4)
FileSystem\PathUtilities.cs (1)
799var sb = new StringBuilder(path.Length);
InternalUtilities\Debug.cs (1)
88_builder = new StringBuilder(literalLength + formattedCount);
Syntax\SyntaxDiffer.cs (1)
827var builder = new StringBuilder(span.Length);
Text\StringTextWriter.cs (1)
25_builder = new StringBuilder(capacity);
Microsoft.CodeAnalysis.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
108_buffer = new StringBuilder(text.Length);
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
108_buffer = new StringBuilder(text.Length);
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
108_buffer = new StringBuilder(text.Length);
Microsoft.CodeAnalysis.CodeStyle (6)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
799var sb = new StringBuilder(path.Length);
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
88_builder = new StringBuilder(literalLength + formattedCount);
src\Dependencies\Contracts\Contract.InterpolatedStringHandlers.cs (3)
23_stringBuilder = condition ? new StringBuilder(capacity: literalLength) : null!; 41_stringBuilder = condition ? null! : new StringBuilder(capacity: literalLength); 59_stringBuilder = value is null ? new StringBuilder(capacity: literalLength) : null!;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\AbstractDocumentationCommentService.cs (1)
74var sb = new StringBuilder(summaryElement.Span.Length);
Microsoft.CodeAnalysis.Collections.Package (3)
src\Dependencies\Contracts\Contract.InterpolatedStringHandlers.cs (3)
23_stringBuilder = condition ? new StringBuilder(capacity: literalLength) : null!; 41_stringBuilder = condition ? null! : new StringBuilder(capacity: literalLength); 59_stringBuilder = value is null ? new StringBuilder(capacity: literalLength) : null!;
Microsoft.CodeAnalysis.Contracts.Package (3)
Contract.InterpolatedStringHandlers.cs (3)
23_stringBuilder = condition ? new StringBuilder(capacity: literalLength) : null!; 41_stringBuilder = condition ? null! : new StringBuilder(capacity: literalLength); 59_stringBuilder = value is null ? new StringBuilder(capacity: literalLength) : null!;
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (1)
EndToEndTests.cs (1)
858var builder = new StringBuilder(preamble.Length + postscript.Length + append.Length * numBinaryExpressions + 5 /* Max num digit characters */ * numBinaryExpressions);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
SourceGeneration\GeneratorDriverTests.cs (1)
3399var builder = new StringBuilder(capacity);
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (3)
src\Dependencies\Contracts\Contract.InterpolatedStringHandlers.cs (3)
23_stringBuilder = condition ? new StringBuilder(capacity: literalLength) : null!; 41_stringBuilder = condition ? null! : new StringBuilder(capacity: literalLength); 59_stringBuilder = value is null ? new StringBuilder(capacity: literalLength) : null!;
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (5)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
88_builder = new StringBuilder(literalLength + formattedCount);
src\Dependencies\Contracts\Contract.InterpolatedStringHandlers.cs (3)
23_stringBuilder = condition ? new StringBuilder(capacity: literalLength) : null!; 41_stringBuilder = condition ? null! : new StringBuilder(capacity: literalLength); 59_stringBuilder = value is null ? new StringBuilder(capacity: literalLength) : null!;
src\ExpressionEvaluator\Core\Source\ResultProvider\Formatter.cs (1)
195var sb = new StringBuilder(nameLength);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (5)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
88_builder = new StringBuilder(literalLength + formattedCount);
src\Dependencies\Contracts\Contract.InterpolatedStringHandlers.cs (3)
23_stringBuilder = condition ? new StringBuilder(capacity: literalLength) : null!; 41_stringBuilder = condition ? null! : new StringBuilder(capacity: literalLength); 59_stringBuilder = value is null ? new StringBuilder(capacity: literalLength) : null!;
src\ExpressionEvaluator\Core\Source\ResultProvider\Formatter.cs (1)
195var sb = new StringBuilder(nameLength);
Microsoft.CodeAnalysis.Features (2)
DocumentationComments\AbstractDocumentationCommentFormattingService.cs (1)
557var builder = new StringBuilder(rawText.Length);
Workspace\CompileTimeSolutionProvider.cs (1)
149var builder = new StringBuilder(filePath.Length);
Microsoft.CodeAnalysis.InteractiveHost (5)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
799var sb = new StringBuilder(path.Length);
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
88_builder = new StringBuilder(literalLength + formattedCount);
src\Dependencies\Contracts\Contract.InterpolatedStringHandlers.cs (3)
23_stringBuilder = condition ? new StringBuilder(capacity: literalLength) : null!; 41_stringBuilder = condition ? null! : new StringBuilder(capacity: literalLength); 59_stringBuilder = value is null ? new StringBuilder(capacity: literalLength) : null!;
Microsoft.CodeAnalysis.PublicApiAnalyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
108_buffer = new StringBuilder(text.Length);
Microsoft.CodeAnalysis.ResxSourceGenerator (3)
AbstractResxGenerator.cs (2)
715var builder = new StringBuilder(name.Length); 778var stringLiteral = new StringBuilder(original.Length + 3);
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
108_buffer = new StringBuilder(text.Length);
Microsoft.CodeAnalysis.Test.Utilities (1)
Assert\AssertEx.cs (1)
732var result = new StringBuilder(str.Length);
Microsoft.CodeAnalysis.Threading.Package (3)
src\Dependencies\Contracts\Contract.InterpolatedStringHandlers.cs (3)
23_stringBuilder = condition ? new StringBuilder(capacity: literalLength) : null!; 41_stringBuilder = condition ? null! : new StringBuilder(capacity: literalLength); 59_stringBuilder = value is null ? new StringBuilder(capacity: literalLength) : null!;
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
Syntax\SyntaxFactsTest.vb (1)
1021Dim builder As New System.Text.StringBuilder(cu.FullSpan.Length * 2)
Microsoft.CodeAnalysis.Workspaces (7)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
799var sb = new StringBuilder(path.Length);
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
88_builder = new StringBuilder(literalLength + formattedCount);
src\Dependencies\Contracts\Contract.InterpolatedStringHandlers.cs (3)
23_stringBuilder = condition ? new StringBuilder(capacity: literalLength) : null!; 41_stringBuilder = condition ? null! : new StringBuilder(capacity: literalLength); 59_stringBuilder = value is null ? new StringBuilder(capacity: literalLength) : null!;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\AbstractDocumentationCommentService.cs (1)
74var sb = new StringBuilder(summaryElement.Span.Length);
Telemetry\TelemetryLoggingInterpolatedStringHandler.cs (1)
17_stringBuilder = new StringBuilder(capacity: literalLength);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (5)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
799var sb = new StringBuilder(path.Length);
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
88_builder = new StringBuilder(literalLength + formattedCount);
src\Dependencies\Contracts\Contract.InterpolatedStringHandlers.cs (3)
23_stringBuilder = condition ? new StringBuilder(capacity: literalLength) : null!; 41_stringBuilder = condition ? null! : new StringBuilder(capacity: literalLength); 59_stringBuilder = value is null ? new StringBuilder(capacity: literalLength) : null!;
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Differencing\LongestCommonSubsequenceTests.cs (1)
33var sb = new StringBuilder(expectedPairsStr.Length);
Microsoft.CommonLanguageServerProtocol.Framework.Example (3)
src\Dependencies\Contracts\Contract.InterpolatedStringHandlers.cs (3)
23_stringBuilder = condition ? new StringBuilder(capacity: literalLength) : null!; 41_stringBuilder = condition ? null! : new StringBuilder(capacity: literalLength); 59_stringBuilder = value is null ? new StringBuilder(capacity: literalLength) : null!;
Microsoft.CommonLanguageServerProtocol.Framework.Package (3)
src\Dependencies\Contracts\Contract.InterpolatedStringHandlers.cs (3)
23_stringBuilder = condition ? new StringBuilder(capacity: literalLength) : null!; 41_stringBuilder = condition ? null! : new StringBuilder(capacity: literalLength); 59_stringBuilder = value is null ? new StringBuilder(capacity: literalLength) : null!;
Microsoft.Data.Analysis (3)
TextFieldParser.cs (3)
489StringBuilder builder = new StringBuilder(_buffer.Length); 735Builder = new StringBuilder(i + 1); 762Builder = new StringBuilder(Size + 10);
Microsoft.Data.Analysis.Tests (3)
src\Microsoft.Data.Analysis\TextFieldParser.cs (3)
489StringBuilder builder = new StringBuilder(_buffer.Length); 735Builder = new StringBuilder(i + 1); 762Builder = new StringBuilder(Size + 10);
Microsoft.DotNet.Arcade.Sdk (2)
src\GenerateResxSource.cs (2)
375var builder = new StringBuilder(name.Length); 438StringBuilder stringLiteral = new StringBuilder(original.Length + 3);
Microsoft.DotNet.ArcadeLogging (1)
MessageBuilder.cs (1)
69var result = new StringBuilder(value.Length);
Microsoft.DotNet.AsmDiff (1)
Csv\CsvTextWriter.cs (1)
76var sb = new StringBuilder(value.Length + 2);
Microsoft.DotNet.SharedFramework.Sdk (1)
src\CreateFrameworkListFile.cs (1)
187StringBuilder publicKeyTokenBuilder = new StringBuilder(len * 2);
Microsoft.DotNet.XUnitAssert.Tests (2)
CollectionAssertsTests.cs (2)
1598 var sb = new StringBuilder(bitArray.Length); 2265 var sb = new StringBuilder(bitArray.Length);
Microsoft.Extensions.ApiDescription.Client (1)
CSharpIdentifier.cs (1)
45var builder = new StringBuilder(inputName.Length);
Microsoft.Extensions.FileProviders.Embedded (2)
EmbeddedFileProvider.cs (2)
89var builder = new StringBuilder(_baseNamespace.Length + subpath.Length); 286var everettId = new StringBuilder(name.Length);
Microsoft.Extensions.Logging.Generators (2)
LoggerMessageGenerator.Emitter.cs (2)
31private readonly StringBuilder _builder = new StringBuilder(DefaultStringBuilderCapacity); 579StringBuilder sb = new StringBuilder(s.Length);
Microsoft.Extensions.ObjectPool (1)
StringBuilderPooledObjectPolicy.cs (1)
29return new StringBuilder(InitialCapacity);
Microsoft.Extensions.Options.SourceGeneration (2)
EmitterBase.cs (1)
24private readonly StringBuilder _sb = new(DefaultStringBuilderCapacity);
Parser.cs (1)
845var sb = new StringBuilder(s.Length);
Microsoft.Gen.ComplianceReports (1)
src\Generators\Shared\EmitterBase.cs (1)
19private readonly StringBuilder _sb = new(DefaultStringBuilderCapacity);
Microsoft.Gen.ContextualOptions (1)
src\Generators\Shared\EmitterBase.cs (1)
19private readonly StringBuilder _sb = new(DefaultStringBuilderCapacity);
Microsoft.Gen.Logging (4)
Emission\Emitter.Utils.cs (1)
28var sb = new StringBuilder(s.Length + 1); // we use +1 because we will add at least one symbol
Emission\StringBuilderPool.cs (1)
19return new StringBuilder(DefaultStringBuilderCapacity);
src\Generators\Shared\EmitterBase.cs (1)
19private readonly StringBuilder _sb = new(DefaultStringBuilderCapacity);
src\Generators\Shared\StringBuilderPool.cs (1)
24return new StringBuilder(DefaultStringBuilderCapacity);
Microsoft.Gen.MetadataExtractor (2)
src\Generators\Shared\EmitterBase.cs (1)
19private readonly StringBuilder _sb = new(DefaultStringBuilderCapacity);
src\Generators\Shared\StringBuilderPool.cs (1)
24return new StringBuilder(DefaultStringBuilderCapacity);
Microsoft.Gen.Metrics (2)
src\Generators\Shared\EmitterBase.cs (1)
19private readonly StringBuilder _sb = new(DefaultStringBuilderCapacity);
src\Generators\Shared\StringBuilderPool.cs (1)
24return new StringBuilder(DefaultStringBuilderCapacity);
Microsoft.Gen.MetricsReports (2)
src\Generators\Shared\EmitterBase.cs (1)
19private readonly StringBuilder _sb = new(DefaultStringBuilderCapacity);
src\Generators\Shared\StringBuilderPool.cs (1)
24return new StringBuilder(DefaultStringBuilderCapacity);
Microsoft.Maui.Controls (1)
Internals\ImageParser.cs (1)
87 var buffer = new StringBuilder(length);
Microsoft.Maui.Graphics (1)
PathBuilder.cs (1)
88 var builder = new StringBuilder(value.Length);
Microsoft.ML.Core (1)
Data\ModelHeader.cs (1)
539sb = sb != null ? sb.Clear() : new StringBuilder(assemblyNameLength);
Microsoft.ML.Tokenizers.Tests (1)
NormalizerTests.cs (1)
95StringBuilder sb = new StringBuilder(original.Length);
Microsoft.ML.Transforms (1)
Expression\BuiltinFunctions.cs (1)
767var sb = new StringBuilder(len);
Microsoft.Net.Http.Headers (1)
ContentDispositionHeaderValue.cs (1)
508var builder = new StringBuilder(result.Length);
Microsoft.NET.StringTools (1)
WeakStringCacheInterner.cs (1)
134StringBuilder result = new StringBuilder(1024);
Microsoft.NET.StringTools.net35 (2)
SpanBasedStringBuilder.Simple.cs (1)
85_builder = new StringBuilder(capacity * 128);
WeakStringCacheInterner.cs (1)
134StringBuilder result = new StringBuilder(1024);
Microsoft.VisualBasic.Core (7)
Microsoft\VisualBasic\CompilerServices\LikeOperator.vb (1)
163Dim NewInput As New Text.StringBuilder(Length + ExtraChars - 1)
Microsoft\VisualBasic\CompilerServices\StringType.vb (1)
809sb = New StringBuilder(DestLength)
Microsoft\VisualBasic\CompilerServices\VB6File.vb (1)
736sb = New StringBuilder(lLen)
Microsoft\VisualBasic\FileIO\TextFieldParser.vb (2)
837Builder = New StringBuilder(i + 1) 867Builder = New StringBuilder(Size + DEFAULT_BUILDER_INCREASE)
Microsoft\VisualBasic\Strings.vb (2)
718Dim Builder As StringBuilder = New StringBuilder(ExpressionLength) 1475sb = New StringBuilder(30)
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\Interaction.vb (1)
152Dim appTitleBuilder As New StringBuilder(MAX_TITLE_LENGTH)
MSBuild (1)
StringExtensions.cs (1)
38var builder = new StringBuilder(aString.Length - oldValue.Length + newValue.Length);
MSBuildTaskHost (1)
StringBuilderCache.cs (1)
61StringBuilder stringBuilder = new StringBuilder(capacity);
PresentationBuildTasks (4)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\MarkupExtensionParser.cs (3)
391stringBuilder = new StringBuilder(length - i); 982stringBuilder = new StringBuilder(length); 1622builder = new StringBuilder(value.Length);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (1)
5577StringBuilder collapsedTextStringBuilder = new StringBuilder(text.Length);
PresentationCore (26)
MS\Internal\AppModel\CookieHandler.cs (1)
110System.Text.StringBuilder sb = new System.Text.StringBuilder((int)size);
MS\Internal\FontFace\FontDifferentiator.cs (1)
57StringBuilder faceNameBuilder = new StringBuilder(7);
MS\Internal\IListConverters.cs (4)
116StringBuilder builder = new StringBuilder(EstimatedCharCountPerItem * list.Count); 157StringBuilder builder = new StringBuilder(EstimatedCharCountPerItem * list.Count); 198StringBuilder builder = new StringBuilder(EstimatedCharCountPerItem * list.Count); 240StringBuilder builder = new StringBuilder(EstimatedCharCountPerItem * list.Count);
MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (1)
606StringBuilder recoString = new StringBuilder(1);
MS\Internal\TextFormatting\TextStore.cs (1)
850StringBuilder stringBuilder = new StringBuilder(stringLength);
System\Windows\Automation\Peers\GenericRootAutomationPeer.cs (1)
42StringBuilder sb = new StringBuilder(512);
System\Windows\Media\ColorContext.cs (1)
545StringBuilder buffer = new StringBuilder(SIZE);
System\Windows\Media\GlyphsSerializer.cs (4)
48_glyphStringBuider = new StringBuilder(10); 51_indicesStringBuider = new StringBuilder( 121StringBuilder builder = new StringBuilder(_characters.Count); 284StringBuilder sb = new StringBuilder(caretStopStringLength);
System\Windows\Media\Imaging\BitmapCodecInfo.cs (8)
90author = new StringBuilder((int)length); 133version = new StringBuilder((int)length); 176specVersion = new StringBuilder((int)length); 219friendlyName = new StringBuilder((int)length); 262deviceManufacturer = new StringBuilder((int)length); 305deviceModels = new StringBuilder((int)length); 348mimeTypes = new StringBuilder((int)length); 391fileExtensions = new StringBuilder((int)length);
System\Windows\Media\Imaging\BitmapDecoder.cs (1)
1252mimeTypes = new StringBuilder((int)length);
System\Windows\Media\Imaging\BitmapMetadata.cs (2)
916format = new StringBuilder((int)length); 958location = new StringBuilder((int)length);
System\Windows\Media\mediaeventshelper.cs (1)
385StringBuilder stringBuilder = new StringBuilder(stringLength)
PresentationFramework (21)
Microsoft\Win32\CommonItemDialog.cs (1)
668StringBuilder sb = new StringBuilder(textLen + 1);
MS\Internal\Globalization\BamlResourceContent.cs (2)
28StringBuilder builder = new(content.Length * 2); 103StringBuilder stringBuilder = new(contentSpan.Length);
System\Windows\Automation\Peers\WindowAutomationPeer.cs (1)
37StringBuilder sb = new StringBuilder(512);
System\Windows\Markup\BamlReader.cs (1)
1764builder = new StringBuilder(value.Length+2);
System\Windows\Markup\MarkupExtensionParser.cs (3)
391stringBuilder = new StringBuilder(length - i); 982stringBuilder = new StringBuilder(length); 1622builder = new StringBuilder(value.Length);
System\Windows\Shell\JumpList.cs (7)
1016var pathBuilder = new StringBuilder(Win32Constant.MAX_PATH); 1018var argsBuilder = new StringBuilder(Win32Constant.INFOTIPSIZE); 1020var descBuilder = new StringBuilder(Win32Constant.INFOTIPSIZE); 1022var iconBuilder = new StringBuilder(Win32Constant.MAX_PATH); 1025var dirBuilder = new StringBuilder(Win32Constant.MAX_PATH); 1064var pathBuilder = new StringBuilder(Win32Constant.MAX_PATH); 1080var argsBuilder = new StringBuilder(Win32Constant.INFOTIPSIZE);
System\Windows\Standard\NativeMethods.cs (4)
2655var fileNameBuilder = new StringBuilder((int)Win32Value.MAX_PATH); 2656var colorBuilder = new StringBuilder((int)Win32Value.MAX_PATH); 2657var sizeBuilder = new StringBuilder((int)Win32Value.MAX_PATH); 2682var buffer = new StringBuilder((int)Win32Value.MAX_PATH);
System\Windows\SystemResources.cs (1)
766StringBuilder sb = new StringBuilder(_assemblyName.Length + 10);
System\Windows\ThemeDictionaryExtension.cs (1)
99StringBuilder uri = new StringBuilder(assemblyName.Length + 50);
ReachFramework (1)
PrintSystemExceptions\PrintSystemException.cs (1)
268StringBuilder win32ErrorMessage = new StringBuilder(defaultWin32ErrorMessageLength);
Replay (4)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
88_builder = new StringBuilder(literalLength + formattedCount);
src\Dependencies\Contracts\Contract.InterpolatedStringHandlers.cs (3)
23_stringBuilder = condition ? new StringBuilder(capacity: literalLength) : null!; 41_stringBuilder = condition ? null! : new StringBuilder(capacity: literalLength); 59_stringBuilder = value is null ? new StringBuilder(capacity: literalLength) : null!;
Roslyn.Diagnostics.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
108_buffer = new StringBuilder(text.Length);
ScenarioTests.Common.Tests (1)
ScenarioTestHelpers.cs (1)
50StringBuilder builder = new StringBuilder(length);
Security.TransportSecurity.IntegrationTests (1)
Tcp\ClientCredentialTypeTests.OSX.cs (1)
186StringBuilder str = new StringBuilder(256);
SemanticSearch.BuildTask (3)
src\Dependencies\Contracts\Contract.InterpolatedStringHandlers.cs (3)
23_stringBuilder = condition ? new StringBuilder(capacity: literalLength) : null!; 41_stringBuilder = condition ? null! : new StringBuilder(capacity: literalLength); 59_stringBuilder = value is null ? new StringBuilder(capacity: literalLength) : null!;
System.CodeDom (7)
Microsoft\CSharp\CSharpCodeGenerator.cs (4)
93var b = new StringBuilder(value.Length + 5); 173var b = new StringBuilder(value.Length + 5); 2764var sb = new StringBuilder(s.Length + 10); 2820var sb = new StringBuilder(128);
Microsoft\VisualBasic\VBCodeGenerator.cs (3)
287StringBuilder b = new StringBuilder(value.Length + 5); 2475var sb = new StringBuilder(baseType.Length + 10); 2541StringBuilder sb = new StringBuilder(128);
System.ComponentModel.TypeConverter (1)
System\ComponentModel\MaskedTextProvider.cs (1)
2489StringBuilder st = new StringBuilder(_testString.Length);
System.Configuration.ConfigurationManager (3)
System\Configuration\XmlUtil.cs (3)
835StringBuilder element = new StringBuilder(64); 925_cachedStringWriter = new StringWriter(new StringBuilder(64), CultureInfo.InvariantCulture); 977StringWriter stringWriter = new StringWriter(new StringBuilder(64), CultureInfo.InvariantCulture);
System.Data.Common (5)
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (1)
364var resultString = new StringBuilder(unQuotedString.Length + quoteSuffix.Length + quoteSuffix.Length);
src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (1)
613StringBuilder builder = new StringBuilder(_usersConnectionString.Length);
src\libraries\Common\src\System\Data\Common\MultipartIdentifier.cs (1)
80StringBuilder sb = new StringBuilder(name.Length); // String buffer to hold the string being currently built, init the string builder so it will never be resized
System\Data\Common\DbConnectionOptions.cs (1)
139var builder = new StringBuilder(_usersConnectionString.Length);
System\Data\DataSet.cs (1)
402StringBuilder strBuilder = new StringBuilder(EstimatedXmlStringSize() * 2);
System.Data.Odbc (8)
Common\System\Data\Common\DbConnectionOptions.cs (2)
324StringBuilder builder = new StringBuilder(_usersConnectionString.Length); 420StringBuilder builder = new StringBuilder(_usersConnectionString.Length);
Common\System\Data\Common\DBConnectionString.cs (1)
468StringBuilder buffer = new StringBuilder(restrictions.Length);
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (1)
364var resultString = new StringBuilder(unQuotedString.Length + quoteSuffix.Length + quoteSuffix.Length);
src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (1)
613StringBuilder builder = new StringBuilder(_usersConnectionString.Length);
src\libraries\Common\src\System\Data\Common\MultipartIdentifier.cs (1)
80StringBuilder sb = new StringBuilder(name.Length); // String buffer to hold the string being currently built, init the string builder so it will never be resized
System\Data\Odbc\Odbc32.cs (1)
729StringBuilder message = new StringBuilder(1024);
System\Data\Odbc\OdbcDataReader.cs (1)
987StringBuilder builder = new StringBuilder(cbBuilderInitialCapacity / 2);
System.Diagnostics.FileVersionInfo (1)
System\Diagnostics\FileVersionInfo.cs (1)
291var sb = new StringBuilder(512);
System.Diagnostics.Process (1)
System\Diagnostics\AsyncStreamReader.cs (1)
74_sb = new StringBuilder(DefaultBufferSize);
System.Drawing.Common.Tests (1)
mono\System.Drawing\BitmapTests.cs (1)
359StringBuilder sOutput = new(arrInput.Length);
System.Formats.Asn1 (1)
System\Formats\Asn1\AsnDecoder.Oid.cs (1)
250StringBuilder builder = new StringBuilder(((byte)contents.Length) * 4);
System.Formats.Tar (1)
src\libraries\Common\src\System\IO\PathInternal.Unix.cs (1)
60StringBuilder builder = new StringBuilder(path.Length);
System.IO.FileSystem.Watcher (1)
src\libraries\Common\src\System\IO\PathInternal.Unix.cs (1)
60StringBuilder builder = new StringBuilder(path.Length);
System.Net.Http (1)
src\libraries\Common\src\System\Text\StringBuilderCache.cs (1)
38return new StringBuilder(capacity);
System.Net.HttpListener (2)
System\Net\HttpListenerRequestUriBuilder.cs (1)
344StringBuilder octetString = new StringBuilder(octets.Count * 3);
System\Net\Managed\HttpConnection.cs (1)
414_currentLine ??= new StringBuilder(128);
System.Net.Primitives (1)
src\libraries\Common\src\System\Text\StringBuilderCache.cs (1)
38return new StringBuilder(capacity);
System.Net.Requests (1)
System\Net\FtpControlStream.cs (1)
816StringBuilder sb = new StringBuilder(32);
System.Net.WebHeaderCollection (1)
System\Net\WebHeaderCollection.cs (1)
399var sb = new StringBuilder(ApproxAveHeaderLineSize * Count);
System.Net.WebSockets.Client (1)
System\Net\WebSockets\WebSocketHandle.Managed.cs (1)
412var builder = new StringBuilder(ClientWebSocketDeflateConstants.MaxExtensionLength);
System.Private.CoreLib (11)
src\libraries\Common\src\System\Text\StringBuilderCache.cs (1)
38return new StringBuilder(capacity);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\StackFrame.cs (1)
203StringBuilder sb = new StringBuilder(255);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\StackTrace.cs (1)
208var sb = new StringBuilder(256);
src\libraries\System.Private.CoreLib\src\System\Exception.cs (1)
246var sb = new StringBuilder(256);
src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (2)
415StringBuilder sb = new StringBuilder(_charLen - _charPos); 1035StringBuilder sb = new StringBuilder(_charLen - _charPos);
src\libraries\System.Private.CoreLib\src\System\IO\TextReader.cs (2)
122StringBuilder sb = new StringBuilder(4096); 243var sb = new StringBuilder(4096);
src\libraries\System.Private.CoreLib\src\System\Text\DecoderExceptionFallback.cs (1)
50StringBuilder strBytes = new StringBuilder(bytesUnknown.Length * 4);
src\libraries\System.Private.CoreLib\src\System\Text\DecoderFallback.cs (1)
298StringBuilder strBytes = new StringBuilder(bytesUnknown.Length * 3);
src\System\Reflection\Emit\RuntimeMethodBuilder.cs (1)
392StringBuilder sb = new StringBuilder(1000);
System.Private.CoreLib.Generators (1)
EventSourceGenerator.Emitter.cs (1)
20StringBuilder sb = new StringBuilder(1024);
System.Private.Xml (35)
src\libraries\Common\src\System\Text\StringBuilderCache.cs (1)
38return new StringBuilder(capacity);
System\Xml\BinaryXml\SqlUtils.cs (9)
506StringBuilder sb = new StringBuilder(20); 535StringBuilder sb = new StringBuilder(20); 562StringBuilder sb = new StringBuilder(16); 678StringBuilder sb = new StringBuilder(10); 686StringBuilder sb = new StringBuilder(33); 696StringBuilder sb = new StringBuilder(16); 704StringBuilder sb = new StringBuilder(16); 713StringBuilder sb = new StringBuilder(39); 724StringBuilder sb = new StringBuilder(22);
System\Xml\BinaryXml\XmlBinaryReader.cs (1)
2763sb ??= new StringBuilder(value.Length + value.Length / 2).Append(value);
System\Xml\Core\XmlCharCheckingWriter.cs (7)
388sb ??= new StringBuilder(str.Length + 5); 401sb ??= new StringBuilder(str.Length + 5); 412sb ??= new StringBuilder(str.Length + 5); 462sb ??= new StringBuilder(len + 5); 476sb ??= new StringBuilder(len + 5); 488sb ??= new StringBuilder(len + 5); 529sb ??= new StringBuilder(text.Length + 5);
System\Xml\Core\XmlTextReaderImpl.cs (1)
9656norValue ??= new StringBuilder(len);
System\Xml\Core\XmlTextWriter.cs (1)
1178StringBuilder bufBld = new StringBuilder(128);
System\Xml\Dom\XmlCharacterData.cs (2)
104string newValue = new StringBuilder(capacity).Append(_data).Append(strData).ToString(); 122string newValue = new StringBuilder(capacity).Append(_data).Insert(offset, strData).ToString();
System\Xml\Schema\DtdParser.cs (1)
3581norValue ??= new StringBuilder(len);
System\Xml\Schema\XmlSchemaValidator.cs (1)
215_textValue = new StringBuilder(100);
System\Xml\XmlComplianceUtil.cs (2)
62norValue ??= new StringBuilder(len); 118norValue ??= new StringBuilder(len);
System\Xml\XmlConvert.cs (4)
108bufBld ??= new StringBuilder(length + 20); 204bufBld ??= new StringBuilder(length + 20); 239bufBld ??= new StringBuilder(length + 20); 1488sb ??= new StringBuilder(value.Length + 4);
System\Xml\Xsl\Runtime\DecimalFormatter.cs (1)
253StringBuilder builder = new StringBuilder(result.Length);
System\Xml\Xsl\Runtime\XsltFunctions.cs (3)
120sb = new StringBuilder(value.Length); 148sb = new StringBuilder(value.Length); 171StringBuilder sb = new StringBuilder(arg.Length);
System\Xml\Xsl\XsltOld\BuilderInfo.cs (1)
153StringBuilder sb = new StringBuilder(size);
System.Private.Xml.Linq (1)
src\libraries\Common\src\System\Text\StringBuilderCache.cs (1)
38return new StringBuilder(capacity);
System.Reflection.MetadataLoadContext (2)
System\Reflection\TypeLoading\General\Helpers.cs (2)
108StringBuilder sbEscapedName = new StringBuilder(identifier.Length); 143StringBuilder sbUnescapedName = new StringBuilder(identifier.Length);
System.Runtime.Caching (2)
System\Runtime\Caching\HostFileChangeMonitor.cs (1)
53StringBuilder sb = new StringBuilder(capacity);
System\Runtime\Caching\MemoryCacheEntryChangeMonitor.cs (1)
52StringBuilder sb = new StringBuilder(capacity);
System.Security.Cryptography (3)
System\Security\Cryptography\DSA.Xml.cs (1)
107StringBuilder builder = new StringBuilder((keyParameters.P.Length << 1) / 3);
System\Security\Cryptography\RSA.Xml.cs (1)
110StringBuilder builder = new StringBuilder(initialCapacity);
System\Security\Cryptography\X509Certificates\OpenSslDirectoryBasedStoreProvider.cs (1)
295StringBuilder pathBuilder = new StringBuilder(thumbprint.Length + PfxOrdinalWildcard.Length + (MaxSaveAttempts / 10));
System.ServiceModel.NetFramingBase (1)
System\ServiceModel\Security\SecurityUtilsEx.cs (1)
118StringBuilder str = new StringBuilder(256);
System.Web.HttpUtility (1)
System\Web\Util\HttpEncoder.cs (1)
485StringBuilder sb = new StringBuilder(l);
System.Windows.Forms (17)
System\Resources\ResXDataNode.cs (2)
198StringBuilder output = new(raw.Length + (raw.Length / lineWrap) * 3); 643StringBuilder builder = new(text.Length);
System\Resources\ResXResourceWriter.cs (1)
557StringBuilder output = new(raw.Length + (raw.Length / lineWrap) * 3);
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
521StringBuilder sb = new(text.Length);
System\Windows\Forms\Application.cs (1)
1283StringBuilder sb = new((arguments.Length - 1) * 16);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (3)
7173sbContent = new StringBuilder(1024); 7459sbContent = new StringBuilder(1024); 7903sbContent = new StringBuilder(1024);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
1314StringBuilder sb = new(64);
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (1)
535StringBuilder sb = new(128);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (1)
134StringBuilder stringBuilder = new(64);
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (1)
222StringBuilder sb = new(1024);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (1)
104StringBuilder stringBuilder = new(64);
System\Windows\Forms\Controls\ToolStrips\ToolStripSettingsManager.cs (1)
79StringBuilder itemNames = new(toolStrip.Items.Count);
System\Windows\Forms\Input\KeysConverter.cs (1)
284StringBuilder termStrings = new(32);
System\Windows\Forms\Internal\WinFormsUtils.cs (2)
135StringBuilder str = new(text.Length); 257StringBuilder str = new(text.Length);
System.Windows.Forms.Design (4)
System\ComponentModel\Design\DesignerActionPanel.cs (1)
756StringBuilder result = new(s.Length);
System\Windows\Forms\Design\StandardMenuStripVerb.cs (1)
463Text.StringBuilder name = new(text.Length + nameSuffix.Length);
System\Windows\Forms\Design\TabOrder.cs (1)
55_drawString = new StringBuilder(12);
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1730Text.StringBuilder name = new(text.Length + nameSuffix.Length);
System.Windows.Forms.Primitives.TestUtilities (4)
Metafiles\EmfScope.cs (2)
210StringBuilder sb = new(1024); 222StringBuilder sb = new(1024);
Metafiles\RecordTypes\EMREXTSELECTCLIPRGN.cs (1)
39StringBuilder sb = new(512);
Metafiles\RecordTypes\EMRPOLYPOLY16.cs (1)
38StringBuilder sb = new(512);
System.Xaml (2)
System\Xaml\Parser\MeScanner.cs (1)
254StringBuilder builder = new StringBuilder(value.Length);
System\Xaml\Parser\XamlText.cs (1)
203StringBuilder sb = new StringBuilder(text.Length);
Test.Utilities (1)
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
108_buffer = new StringBuilder(text.Length);
Text.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
108_buffer = new StringBuilder(text.Length);
UIAutomationClient (4)
MS\Internal\Automation\HwndProxyElementProvider.cs (1)
125StringBuilder str = new StringBuilder( ilen + 1 );
MS\Internal\Automation\ProxyManager.cs (3)
221StringBuilder str = new StringBuilder( NativeMethods.MAX_PATH ); 235StringBuilder str = new StringBuilder( NativeMethods.MAX_PATH ); 303StringBuilder sb = new StringBuilder(NativeMethods.MAX_PATH);
UIAutomationClientSideProviders (6)
MS\Internal\AutomationProxies\Misc.cs (4)
188StringBuilder sb = new StringBuilder(NativeMethods.MAX_PATH + 1); 212StringBuilder sb = new StringBuilder(MaxLengthNameProperty); 1165StringBuilder str = new StringBuilder(length + 1); 1409System.Text.StringBuilder className = new System.Text.StringBuilder(NativeMethods.MAX_PATH + 1);
MS\Internal\AutomationProxies\WindowsAltTab.cs (1)
353StringBuilder itemText = new StringBuilder(WindowsAltTab.MaxItemNameLength);
MS\Internal\AutomationProxies\WindowsMenu.cs (1)
2540StringBuilder strbldr = new StringBuilder(length + 1);
UnitTests.Common (1)
TestHelpers.cs (1)
37StringBuilder builder = new StringBuilder(length);
xunit.assert (2)
Sdk\ArgumentFormatter.cs (1)
156 var builder = new StringBuilder(s.Length);
Sdk\AssertHelper.cs (1)
218 var printedValue = new StringBuilder(100);
xunit.console (1)
common\Json.cs (1)
72StringBuilder _codePointBuffer = new StringBuilder(4);