233 references to StringBuilder
Aspire.Acquisition.Tests (1)
tests\Shared\TemplatesTesting\CommandResult.cs (1)
26StringBuilder message = new StringBuilder($"{messagePrefix} Expected {expectedExitCode} exit code but got {ExitCode}: {StartInfo.FileName} {StartInfo.Arguments}");
Aspire.EndToEnd.Tests (1)
tests\Shared\TemplatesTesting\CommandResult.cs (1)
26StringBuilder message = new StringBuilder($"{messagePrefix} Expected {expectedExitCode} exit code but got {ExitCode}: {StartInfo.FileName} {StartInfo.Arguments}");
Aspire.Hosting.CodeGeneration.Go (1)
AtsGoCodeGenerator.cs (1)
1119var sb = new StringBuilder("func(");
Aspire.Hosting.RemoteHost (1)
AtsCapabilityScanner.cs (1)
3819var builder = new StringBuilder("M:");
Aspire.Hosting.Tasks (1)
RunAspireCliCommand.cs (1)
344var command = new StringBuilder($"\"%{CommandShimPathEnvironmentVariable}%\"");
Aspire.Templates.Tests (1)
tests\Shared\TemplatesTesting\CommandResult.cs (1)
26StringBuilder message = new StringBuilder($"{messagePrefix} Expected {expectedExitCode} exit code but got {ExitCode}: {StartInfo.FileName} {StartInfo.Arguments}");
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\Parser\Extensions.cs (1)
110StringBuilder sb = new(displayString);
csc (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
581var builder = new StringBuilder($@"""{serverInfo.processFilePath}"" {serverInfo.commandLineArguments}");
dotnet (5)
Commands\Run\RunCommandSelector.cs (1)
476var displayBuilder = new StringBuilder($" {i + 1}. {device.Id}");
Commands\Test\MTP\TestApplication.cs (3)
351StringBuilder builder = new( 1119messageBuilder = new StringBuilder(CliCommandStrings.DotnetTestPipeFailureHasHandshake); 1128messageBuilder = new StringBuilder(CliCommandStrings.DotnetTestPipeFailureWithoutHandshake);
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.11.0-1.26424.106\contentFiles\cs\net11.0\BuildServerConnection.cs (1)
581var builder = new StringBuilder($@"""{serverInfo.processFilePath}"" {serverInfo.commandLineArguments}");
dotnet-dev-certs (1)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
441var headerBuilder = new StringBuilder("Usage:");
dotnet-getdocument (1)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
441var headerBuilder = new StringBuilder("Usage:");
dotnet-Microsoft.XmlSerializer.Generator (1)
Sgen.cs (1)
636StringBuilder sb = new StringBuilder(reference);
dotnet-openapi (1)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
441var headerBuilder = new StringBuilder("Usage:");
dotnet-sql-cache (1)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
441var headerBuilder = new StringBuilder("Usage:");
dotnet-svcutil-lib (12)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWellformedWriterHelpers.cs (1)
407_stringValue = new StringBuilder(valAfter);
FrameworkFork\Microsoft.Xml\Xml\Dom\DocumentXPathNavigator.cs (1)
215StringBuilder builder = new StringBuilder(value);
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlCharacterData.cs (2)
147string newValue = new StringBuilder(_data).Remove(offset, count).ToString(); 175StringBuilder temp = new StringBuilder(_data).Remove(offset, count);
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlDeclaration.cs (1)
78StringBuilder strb = new StringBuilder("version=\"" + Version + "\"");
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlNodeReader.cs (1)
263StringBuilder strb = new StringBuilder(String.Empty);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (1)
2029StringBuilder namespaces = new StringBuilder(genericNameProvider.GetNamespaces());
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlConverter.cs (1)
471StringBuilder sb = new StringBuilder(value);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryReader.cs (1)
353sb = new StringBuilder(result);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (1)
1653unImportedPolicyMessage = new StringBuilder(SRServiceModel.UnabletoImportPolicy);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\XmlHelper.cs (1)
136sb = new StringBuilder(s);
Shared\FrameworkInfo.cs (1)
59StringBuilder sb = new StringBuilder(versionString);
dotnet-user-jwts (1)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
441var headerBuilder = new StringBuilder("Usage:");
dotnet-user-secrets (1)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
441var headerBuilder = new StringBuilder("Usage:");
GenerateDocumentationAndConfigFiles (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ConsList`1.cs (1)
141StringBuilder result = new StringBuilder("ConsList[");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
532var value = new StringBuilder("{");
GetDocument.Insider (1)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
441var headerBuilder = new StringBuilder("Usage:");
ILAssembler (1)
PreprocessedTokenSource.cs (1)
57var sb = new StringBuilder(name);
ILCompiler.Compiler (4)
Compiler\Logging\MessageOrigin.cs (1)
108StringBuilder sb = new StringBuilder(FileName);
src\runtime\src\coreclr\tools\Common\Compiler\DisplayNameHelpers.cs (3)
120return new StringBuilder(field.OwningType.GetDisplayName()) 128return new StringBuilder(property.OwningType.GetDisplayName()) 135return new StringBuilder(@event.OwningType.GetDisplayName())
ILCompiler.ReadyToRun (1)
src\runtime\src\coreclr\tools\Common\Compiler\DisplayNameHelpers.cs (1)
120return new StringBuilder(field.OwningType.GetDisplayName())
illink (2)
Microsoft.Arcade.Common (1)
CommandResult.cs (1)
31StringBuilder message = new StringBuilder($"Command failed with exit code {ExitCode}: {StartInfo.FileName} {StartInfo.Arguments}");
Microsoft.AspNetCore.Authentication.JwtBearer (1)
JwtBearerHandler.cs (1)
308var builder = new StringBuilder(Options.Challenge);
Microsoft.AspNetCore.Authentication.OAuth (1)
OAuthTokenResponse.cs (1)
103var result = new StringBuilder("OAuth token endpoint failure: ");
Microsoft.AspNetCore.Authentication.Twitter (1)
TwitterHandler.cs (1)
388var errorMessageStringBuilder = new StringBuilder("An error has occurred while calling the Twitter API, error's returned:");
Microsoft.AspNetCore.Components (1)
BindConverter.cs (1)
1875var builder = new StringBuilder("[\"");
Microsoft.AspNetCore.Components.Endpoints (1)
Rendering\EndpointHtmlRenderer.EventDispatch.cs (1)
63var sb = new StringBuilder($"There is more than one named submit event with the name '{scopeQualifiedName}'. Ensure named submit events have unique names, or are in scopes with distinct names. The following components use this name:");
Microsoft.AspNetCore.Components.Testing (1)
Infrastructure\ServerInstance.cs (1)
177var sb = new StringBuilder(appName);
Microsoft.AspNetCore.Http.Abstractions (1)
QueryString.cs (1)
204var builder = new StringBuilder(Value);
Microsoft.AspNetCore.Identity (1)
SignInManager.cs (1)
1414var sb = new StringBuilder("ResetLockout failed.");
Microsoft.AspNetCore.Mvc.Razor (1)
RazorFileHierarchy.cs (1)
26var builder = new StringBuilder(path);
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Cache\CacheTagKey.cs (1)
125var builder = new StringBuilder(_prefix);
Microsoft.AspNetCore.Server.HttpSys (1)
src\aspnetcore\src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (1)
72StringBuilder builder = new StringBuilder(message);
Microsoft.AspNetCore.Server.IIS (1)
src\aspnetcore\src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (1)
72StringBuilder builder = new StringBuilder(message);
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\aspnetcore\src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (1)
72StringBuilder builder = new StringBuilder(message);
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
src\aspnetcore\src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (1)
72StringBuilder builder = new StringBuilder(message);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
src\aspnetcore\src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (1)
72StringBuilder builder = new StringBuilder(message);
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (4)
HubClientProxyGenerator.Emitter.cs (1)
131var registrationMethodBody = new StringBuilder(GeneratorHelpers.SourceFilePrefix() + $@"
HubServerProxyGenerator.Emitter.cs (3)
84var signature = new StringBuilder($"public {methodSpec.FullyQualifiedReturnTypeName} {methodSpec.Name}("); 85var callArgs = new StringBuilder(""); 86var signatureArgs = new StringBuilder("");
Microsoft.Build (3)
Construction\Solution\SolutionProjectGenerator.cs (1)
602var builder = new StringBuilder(name);
Evaluation\ParserIgnoreConfiguration.cs (1)
149var sb = new StringBuilder("Skipped unrecognized items allowed by Directory.Parse.config:");
src\msbuild\src\Shared\TaskLoggingHelper.cs (1)
535StringBuilder flattenedMessage = new StringBuilder(e.Message);
Microsoft.Build.Framework (1)
Utilities\AssemblyNameExtension.cs (1)
840StringBuilder sb = new StringBuilder(displayName);
Microsoft.Build.Tasks.CodeAnalysis (2)
src\roslyn\src\Compilers\Core\MSBuildTask\Vbc.cs (1)
792StringBuilder finalDefineConstants = new StringBuilder(originalDefineConstants);
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
581var builder = new StringBuilder($@"""{serverInfo.processFilePath}"" {serverInfo.commandLineArguments}");
Microsoft.Build.Tasks.Core (4)
ManifestUtil\AssemblyIdentity.cs (1)
451var sb = new StringBuilder(_name);
ManifestUtil\Util.cs (1)
92StringBuilder sb = new StringBuilder(value);
RedistList.cs (2)
347var keyBuilder = assemblyTables.Length > 0 ? new StringBuilder(assemblyTables[0].Descriptor) : new StringBuilder(); 575var keyBuilder = allowListAssemblyTableInfo.Length > 0 ? new StringBuilder(allowListAssemblyTableInfo[0].Descriptor) : new StringBuilder();
Microsoft.Build.Utilities.Core (2)
src\msbuild\src\Shared\TaskLoggingHelper.cs (1)
535StringBuilder flattenedMessage = new StringBuilder(e.Message);
ToolTask.cs (1)
1738StringBuilder sb = new StringBuilder(input);
Microsoft.CodeAnalysis (1)
InternalUtilities\ConsList`1.cs (1)
141StringBuilder result = new StringBuilder("ConsList[");
Microsoft.CodeAnalysis.Analyzers (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ConsList`1.cs (1)
141StringBuilder result = new StringBuilder("ConsList[");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
532var value = new StringBuilder("{");
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ConsList`1.cs (1)
141StringBuilder result = new StringBuilder("ConsList[");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
532var value = new StringBuilder("{");
Microsoft.CodeAnalysis.CodeStyle (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ConsList`1.cs (1)
141StringBuilder result = new StringBuilder("ConsList[");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
532var value = new StringBuilder("{");
Microsoft.CodeAnalysis.CSharp (2)
Binder\PatternExplainer.cs (1)
685var subpatternBuilder = new StringBuilder("(");
Symbols\AbstractTypeParameterMap.cs (1)
41var result = new StringBuilder("[");
Microsoft.CodeAnalysis.Razor.Compiler (5)
Language\Legacy\AddTagHelperChunkGenerator.cs (1)
67var builder = new StringBuilder("AddTagHelper:{");
Language\Legacy\DirectiveTokenChunkGenerator.cs (1)
41var builder = new StringBuilder("DirectiveToken {");
Language\Legacy\RemoveTagHelperChunkGenerator.cs (1)
67var builder = new StringBuilder("RemoveTagHelper:{");
Language\Legacy\TagHelperPrefixDirectiveChunkGenerator.cs (1)
52var builder = new StringBuilder("TagHelperPrefix:{");
Mvc.Version2_X\NamespaceDirective.cs (1)
113var builder = new StringBuilder(baseNamespace);
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ConsList`1.cs (1)
141StringBuilder result = new StringBuilder("ConsList[");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
532var value = new StringBuilder("{");
Microsoft.CodeAnalysis.Workspaces (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ConsList`1.cs (1)
141StringBuilder result = new StringBuilder("ConsList[");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
532var value = new StringBuilder("{");
Microsoft.Data.Analysis (1)
DataFrameColumn.cs (1)
439var sb = new StringBuilder(Name);
Microsoft.Diagnostics.DataContractReader.Legacy (1)
TypeNameBuilder.cs (1)
517var name = new StringBuilder("Continuation_");
Microsoft.DotNet.Build.Tasks.Packaging (2)
GetPackageDescription.cs (1)
124StringBuilder description = new StringBuilder(metadata.Description);
NuGetAssetResolver.cs (1)
122StringBuilder assetLog = new StringBuilder($"{assetType} assets for {package} on {target}: ");
Microsoft.Extensions.AI.Abstractions (1)
Tools\AITool.cs (1)
69StringBuilder sb = new(Name);
Microsoft.Extensions.AI.OpenAI (1)
OpenAIAssistantsChatClient.cs (1)
494instructions = new(toAppend);
Microsoft.Extensions.Configuration.FileExtensions (1)
FileConfigurationProvider.cs (1)
166var error = new StringBuilder(SR.Format(SR.Error_FileNotFound, Source.Path ?? file?.Name));
Microsoft.Extensions.DataIngestion (2)
Processors\ClassificationEnricher.cs (1)
79StringBuilder sb = new("You are a classification expert. For each of the following texts, assign a single, most relevant class. Use only the following predefined classes: ");
Processors\KeywordEnricher.cs (1)
82StringBuilder sb = new($"You are a keyword extraction expert. For each of the following texts, extract up to {maxKeywords} most relevant keywords. ");
Microsoft.Extensions.DependencyInjection (1)
DependencyInjectionEventSource.cs (1)
202StringBuilder descriptorBuilder = new StringBuilder("{ \"descriptors\":[ ");
Microsoft.Extensions.Diagnostics.HealthChecks (1)
DefaultHealthCheckService.cs (1)
171builder ??= new StringBuilder("Duplicate health checks were registered with the name(s): ");
Microsoft.Extensions.Validation.ValidationsGenerator (1)
Emitters\ValidationsGenerator.Emitter.cs (1)
341var sb = new StringBuilder(firstAttribute);
Microsoft.Gen.Logging.Unit.Tests (1)
ParserTests.LogMethod.cs (1)
397var sb = new System.Text.StringBuilder(@"
Microsoft.Interop.ComInterfaceGenerator (1)
src\runtime\src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (1)
88StringBuilder equivalenceKeyBuilder = new(baseEquivalenceKey);
Microsoft.Interop.LibraryImportGenerator (1)
src\runtime\src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (1)
88StringBuilder equivalenceKeyBuilder = new(baseEquivalenceKey);
Microsoft.Interop.SourceGeneration (1)
ContainingSyntaxContext.cs (1)
74containingNamespace = new StringBuilder(ns.Name.ToString());
Microsoft.Maui.Controls (1)
Brush\BrushTypeConverter.cs (1)
155 var colorString = new StringBuilder(part);
Microsoft.ML.Core (1)
CommandLine\CmdLexer.cs (1)
324return NeedsQuoting(new StringBuilder(str), 0);
Microsoft.ML.Data (1)
Dirty\IniFileUtils.cs (1)
28StringBuilder bld = new StringBuilder(ini);
Microsoft.ML.FastTree (15)
FastTreeRanking.cs (1)
462StringBuilder headerBuilder = new StringBuilder("Eval:\tFileName\tNDCG@1\tNDCG@2\tNDCG@3\tNDCG@4\tNDCG@5\tNDCG@6\tNDCG@7\tNDCG@8\tNDCG@9\tNDCG@10");
FastTreeRegression.cs (1)
339StringBuilder headerBuilder = new StringBuilder("Eval:\tFileName\tNDCG@1\tNDCG@2\tNDCG@3\tNDCG@4\tNDCG@5\tNDCG@6\tNDCG@7\tNDCG@8\tNDCG@9\tNDCG@10");
FastTreeTweedie.cs (1)
283StringBuilder headerBuilder = new StringBuilder("Eval:\tFileName\tNDCG@1\tNDCG@2\tNDCG@3\tNDCG@4\tNDCG@5\tNDCG@6\tNDCG@7\tNDCG@8\tNDCG@9\tNDCG@10");
TreeEnsemble\InternalRegressionTree.cs (12)
1185StringBuilder sbFeatures = new StringBuilder("SplitFeatures="); 1186StringBuilder sbSplitGain = new StringBuilder("\nSplitGain="); 1187StringBuilder sbGainPValue = _gainPValue != null ? new StringBuilder("\nGainPValue=") : null; 1188StringBuilder sbLteChild = new StringBuilder("\nLTEChild="); 1189StringBuilder sbGtChild = new StringBuilder("\nGTChild="); 1190StringBuilder sbOutput = new StringBuilder("\nOutput="); 1191StringBuilder sbThreshold = new StringBuilder("\nThreshold="); 1271StringBuilder sbFeatures = new StringBuilder("SplitFeatures="); 1272StringBuilder sbLteChild = new StringBuilder("\nLTEChild="); 1273StringBuilder sbGtChild = new StringBuilder("\nGTChild="); 1274StringBuilder sbOutput = new StringBuilder("\nOutput="); 1275StringBuilder sbThreshold = new StringBuilder("\nThreshold=");
Microsoft.ML.InternalCodeAnalyzer (2)
NameFixProvider.cs (2)
137StringBuilder sb = new StringBuilder(prefix); 152StringBuilder sb = new StringBuilder(prefix);
Microsoft.ML.StandardTrainers (2)
Standard\LinearPredictorUtils.cs (2)
102StringBuilder aggregatedNodesBuilder = new StringBuilder("Nodes="); 103StringBuilder weightsBuilder = new StringBuilder("Weights=");
Microsoft.ML.Tokenizers.Tests (2)
UnigramTests.cs (2)
1005StringBuilder vocab = new StringBuilder("[[\"<unk>\", 0.0], [\"<s>\", 0.0], [\"</s>\", 0.0]"); 1035StringBuilder vocab = new StringBuilder("[[\"<s>\", 0.0], [\"</s>\", 0.0]");
Microsoft.ML.Transforms (1)
PermutationFeatureImportance.cs (1)
76StringBuilder msgFilteredOutFeatures = new StringBuilder("The following features have zero weight and will not be evaluated: \n \t");
Microsoft.NET.Build.Containers (1)
ContainerHelpers.cs (1)
314var builder = new StringBuilder(containerRepository);
Microsoft.NET.Build.Tasks (3)
ParseTargetManifests.cs (1)
43runtimeStorePackages.Add(pkg, new StringBuilder(targetManifestFileName));
ResolveTargetingPackAssets.cs (2)
538StringBuilder cacheKeyBuilder = new(nameof(ResolveTargetingPackAssets) + nameof(StronglyTypedInputs)); 704StringBuilder keyBuilder = new(nameof(FrameworkListDefinition));
Microsoft.Net.Http.Headers (1)
ContentDispositionHeaderValue.cs (1)
619var builder = new StringBuilder("UTF-8\'\'");
Microsoft.NET.Sdk.Publish.Tasks (1)
Tasks\MsDeploy\NormalizeServiceUrl.cs (1)
168System.Text.StringBuilder url = new("http://");
Microsoft.NET.Sdk.Razor.Tasks (1)
src\sdk\src\RazorSdk\Tool\ServerProtocol\ServerConnection.cs (1)
356var builder = new StringBuilder($@"""{expectedPath}"" {processArguments}");
Microsoft.TemplateEngine.Cli (1)
Commands\create\InstantiateCommand.NoMatchHandling.cs (1)
94StringBuilder invalidParamsErrorText = new(LocalizableStrings.InvalidCommandOptions);
Microsoft.TestPlatform.Extensions.BlameDataCollector (2)
ProcDumpArgsBuilder.cs (2)
47StringBuilder procDumpArgument = new($"-accepteula -e 1 -g -t {procdumpAdditonalArgumentsFromEnv}"); 78StringBuilder procDumpArgument = new("-accepteula -n 1");
Microsoft.TestPlatform.PlatformAbstractions (1)
common\Tracing\RollingFileTraceListener.cs (1)
192StringBuilder fileNameBuilder = new(fileNameWithoutExtension);
Microsoft.TestPlatform.TestHostRuntimeProvider (1)
Hosting\DefaultTestHostManager.cs (1)
262StringBuilder testHostProcessName = new("testhost");
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\CompilerServices\Utils.LateBinder.vb (1)
172sb = New StringBuilder(s)
Microsoft.VisualStudio.TestPlatform.Common (1)
Utilities\ExceptionUtilities.cs (1)
26var exceptionString = new StringBuilder(exception.Message);
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (1)
Utility\Converter.cs (1)
415StringBuilder stdErr = new(testResult.StdErr);
Microsoft.VisualStudio.TestPlatform.ObjectModel (1)
Nuget.Frameworks\NuGetFramework.cs (1)
300var sb = new StringBuilder(string.Format(CultureInfo.InvariantCulture, "{0}.{1}", version.Major, version.Minor));
Microsoft.Win32.Registry (1)
Microsoft\Win32\RegistryKey.cs (1)
1419StringBuilder sb = new StringBuilder(name);
NuGet.Versioning (1)
NuGetVersionFactory.cs (1)
314var sb = new StringBuilder(version.ToString());
PresentationBuildTasks (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlParseException.cs (1)
422StringBuilder sb = new StringBuilder(message);
PresentationFramework (4)
System\Windows\Documents\RtfToXamlReader.cs (3)
4953StringBuilder xamlStringBuilder = new StringBuilder(Xaml); 6446StringBuilder xamlBuilder = new StringBuilder(dn.Xaml); 6510StringBuilder xamlBuilder = new StringBuilder(dn.Xaml);
System\Windows\Markup\XamlParseException.cs (1)
422StringBuilder sb = new StringBuilder(message);
ResultsOfTGenerator (1)
Program.cs (1)
741var sb = new StringBuilder("Results<");
Roslyn.Diagnostics.Analyzers (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ConsList`1.cs (1)
141StringBuilder result = new StringBuilder("ConsList[");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
532var value = new StringBuilder("{");
rzc (2)
CommandLine\CommandLineApplication.cs (1)
435var headerBuilder = new StringBuilder("Usage:");
ServerProtocol\ServerConnection.cs (1)
356var builder = new StringBuilder($@"""{expectedPath}"" {processArguments}");
sdk-tasks (2)
GenerateMSBuildExtensionsSWR.cs (1)
18StringBuilder sb = new StringBuilder(SWR_HEADER);
GenerateRuntimeAnalyzersSWR.cs (1)
18StringBuilder sb = new StringBuilder(SWR_HEADER);
System.Collections.Specialized (1)
System\Collections\Specialized\NameValueCollection.cs (1)
124StringBuilder s = new StringBuilder((string?)list[0]);
System.Data.Common (1)
System\Data\XmlDataLoader.cs (1)
1257builder ??= new StringBuilder(text);
System.Data.OleDb (1)
OleDbMetaDataFactory.cs (1)
182StringBuilder regularExpression = new StringBuilder("[^");
System.Diagnostics.EventLog (3)
System\Diagnostics\EventLog.cs (2)
578inaccessibleLogs = new StringBuilder(logNames[i]); 590inaccessibleLogs = new StringBuilder(logNames[i]);
System\Diagnostics\EventLogEntry.cs (1)
157StringBuilder msgBuf = new StringBuilder(SR.Format(SR.MessageNotFormatted, msgId, Source));
System.Diagnostics.TextWriterTraceListener (2)
System\Diagnostics\DelimitedListTraceListener.cs (2)
213StringBuilder sb = new StringBuilder("\""); 222StringBuilder sb = new StringBuilder("\"");
System.DirectoryServices.AccountManagement (2)
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_Query.cs (2)
783StringBuilder ldapFilter = new StringBuilder("("); 879StringBuilder ldapFilter = new StringBuilder("(");
System.IO.IsolatedStorage (2)
System\IO\IsolatedStorage\IsolatedStorageFile.NonMobile.cs (2)
32StringBuilder sb = new StringBuilder(GetIsolatedStorageRoot()); 55StringBuilder root = new StringBuilder(Helper.GetRootDirectory(Scope));
System.IO.Packaging (1)
System\IO\Packaging\ContentType.cs (1)
218StringBuilder stringBuilder = new StringBuilder(_type);
System.Linq.Expressions (1)
System\Linq\Expressions\Compiler\AssemblyGen.cs (1)
47StringBuilder sb = new StringBuilder(name);
System.Net.Mail (1)
System\Net\Mail\MailMessage.cs (1)
445StringBuilder s = new StringBuilder(" NOTIFY=");
System.Numerics.Tensors (1)
System\Numerics\Tensors\netcore\Tensor.cs (1)
2190var sb = new StringBuilder(typeName);
System.Private.CoreLib (4)
src\runtime\src\libraries\System.Private.CoreLib\src\System\ComponentModel\Win32Exception.cs (1)
94StringBuilder s = new StringBuilder(className);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\ReflectionTypeLoadException.cs (1)
63var text = new StringBuilder(baseValue);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Versioning\VersioningHelper.cs (1)
47StringBuilder safeName = new StringBuilder(name);
System\Reflection\Runtime\TypeInfos\NativeFormat\NativeFormatRuntimeNamedTypeInfo.cs (1)
137sb = new StringBuilder(FullName);
System.Private.DataContractSerialization (5)
System\Runtime\Serialization\DataContract.cs (1)
1927StringBuilder namespaces = new StringBuilder(genericNameProvider.GetNamespaces());
System\Runtime\Serialization\XPathQueryGenerator.cs (1)
114_xPathBuilder = new StringBuilder(XPathQueryGenerator.XPathSeparator + prefix + XPathQueryGenerator.NsSeparator + rootContract.TopLevelElementName!.Value);
System\Xml\XmlConverter.cs (1)
437StringBuilder sb = new StringBuilder(value);
System\Xml\XmlDictionaryReader.cs (2)
410sb ??= new StringBuilder(result); 479sb ??= new StringBuilder(result);
System.Private.Reflection.Execution (1)
Internal\Reflection\Execution\PayForPlayExperience\MissingMetadataExceptionCreator.cs (1)
20StringBuilder friendlyName = new StringBuilder(memberInfo.DeclaringType.ToString());
System.Private.TypeLoader (1)
Internal\TypeSystem\InstantiatedMethod.Runtime.cs (1)
87var sb = new System.Text.StringBuilder(_methodDef.ToString());
System.Private.Xml (6)
System\Xml\Dom\DocumentXPathNavigator.cs (1)
209StringBuilder builder = new StringBuilder(value);
System\Xml\Dom\XmlCharacterData.cs (2)
147string newValue = new StringBuilder(_data).Remove(offset, count).ToString(); 173StringBuilder temp = new StringBuilder(_data).Remove(offset, count);
System\Xml\Dom\XmlNodeReader.cs (1)
248StringBuilder strb = new StringBuilder(string.Empty);
System\Xml\Xsl\XslException.cs (1)
59StringBuilder sb = new StringBuilder(res);
System\Xml\Xsl\XsltOld\ReaderOutput.cs (1)
421sb ??= new StringBuilder(result);
System.Private.Xml.Linq (1)
System\Xml\Linq\XContainer.cs (1)
931_textBuffer = new StringBuilder(_textValue).Append(value);
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Types\RoFunctionPointerType.cs (1)
79StringBuilder sb = new(t.ToString());
System.Runtime.Serialization.Formatters (1)
System\Runtime\Serialization\FormatterServices.cs (1)
358var builder = new StringBuilder(type.GetGenericTypeDefinition().FullName).Append('[');
System.ServiceModel.Primitives (2)
Internals\System\Xml\XmlMtomWriter.cs (1)
166StringBuilder contentTypeBuilder = new StringBuilder(
System\ServiceModel\Security\XmlHelper.cs (1)
137sb = new StringBuilder(s);
System.ServiceModel.Syndication (3)
System\ServiceModel\Syndication\DateTimeHelper.cs (2)
74StringBuilder dateTimeStringBuilder = new StringBuilder(dateTimeString.Trim()); 137StringBuilder result = new StringBuilder(rfc822TimeZone);
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (1)
184StringBuilder sb = new StringBuilder(dateTime.ToString(Rfc822OutputLocalDateTimeFormat, CultureInfo.InvariantCulture));
System.Speech (12)
Internal\SrgsCompiler\RuleRef.cs (1)
49StringBuilder sbExternalRuleUri = new("URL:");
Internal\SrgsCompiler\State.cs (1)
422StringBuilder sb = new("[#");
Internal\SrgsParser\XmlParser.cs (1)
1816StringBuilder attribute = new(reader.LocalName);
Internal\Synthesis\SSmlParser.cs (1)
1477StringBuilder attribute = new(reader.LocalName);
Internal\Synthesis\TextFragmentEngine.cs (1)
83StringBuilder sb = new(baseUri);
Internal\Synthesis\VoiceSynthesis.cs (1)
204StringBuilder sb = new(text.Substring(0, curPos));
Recognition\SrgsGrammar\SrgsNameValueTag.cs (1)
134StringBuilder sb = new("SrgsNameValue = ");
Recognition\SrgsGrammar\SrgsOneOf.cs (1)
95StringBuilder sb = new("SrgsOneOf Count = ");
Recognition\SrgsGrammar\SrgsRuleRef.cs (1)
220StringBuilder sb = new("SrgsRuleRef");
Recognition\SrgsGrammar\SrgsSemanticInterpretationTag.cs (1)
83StringBuilder sb = new("SrgsSemanticInterpretationTag = '");
Recognition\SrgsGrammar\SrgsToken.cs (1)
149StringBuilder sb = new("Token = '");
Result\RecognitionResult.cs (1)
501StringBuilder sb = new("Recognized text = '");
System.Text.Json (3)
System\Text\Json\Serialization\Metadata\JsonTypeInfoResolverChain.cs (1)
59var sb = new StringBuilder("[");
System\Text\Json\Serialization\ReadStack.cs (1)
267StringBuilder sb = new StringBuilder("$");
System\Text\Json\Serialization\WriteStack.cs (1)
388StringBuilder sb = new StringBuilder("$");
System.Text.Json.SourceGeneration (3)
JsonSourceGenerator.Emitter.cs (3)
1698sb = new("static args => { "); 1724sb = new($"static args => {accessorName}("); 1728sb = new($"static args => new {typeGenerationSpec.TypeRef.FullyQualifiedName}(");
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\RegexNode.cs (1)
3495var sb = new StringBuilder(Kind.ToString());
System.Text.RegularExpressions.Generator (1)
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexNode.cs (1)
3495var sb = new StringBuilder(Kind.ToString());
System.Windows.Forms.Design (1)
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (1)
350StringBuilder builder = new(Environment.NewLine);
System.Xaml (1)
System\Xaml\XamlMarkupExtensionWriter.cs (1)
257StringBuilder sb = new StringBuilder("\"");
UIAutomationClientSideProviders (4)
MS\Internal\AutomationProxies\WindowsEditBox.cs (1)
297result = Misc.ProxySendMessageInt(_hwnd, NativeMethods.WM_SETTEXT, IntPtr.Zero, new StringBuilder(str));
MS\Internal\AutomationProxies\WindowsIPAddress.cs (1)
380Misc.ProxySendMessage(_hwnd, NativeMethods.WM_SETTEXT, IntPtr.Zero, new StringBuilder(i.ToString(CultureInfo.CurrentCulture)));
MS\Internal\AutomationProxies\WindowsRichEdit.cs (1)
195result = Misc.ProxySendMessageInt(_hwnd, NativeMethods.WM_SETTEXT, IntPtr.Zero, new StringBuilder(str));
MS\Internal\AutomationProxies\WindowsTreeView.cs (1)
606if (Misc.ProxySendMessageInt(hwndEdit, NativeMethods.WM_SETTEXT, IntPtr.Zero, new StringBuilder(text)) != 1)
vbc (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
581var builder = new StringBuilder($@"""{serverInfo.processFilePath}"" {serverInfo.commandLineArguments}");
VBCSCompiler (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
581var builder = new StringBuilder($@"""{serverInfo.processFilePath}"" {serverInfo.commandLineArguments}");