19 references to WeakIntern
Microsoft.Build (8)
Construction\Solution\SolutionProjectGenerator.cs (2)
1197string directProjectProperties = Strings.WeakIntern(String.Join(";", GetConfigurationAndPlatformPropertiesString(projectConfiguration), SolutionProperties)); 1456ProjectTaskInstance task = target.AddTask("MSBuild", Strings.WeakIntern($"'%(ProjectReference.Identity)' == '{GetMetaprojectName(project)}'"), String.Empty);
ElementLocation\XmlDocumentWithLocation.cs (4)
245string interned = Strings.WeakIntern(text); 261string interned = Strings.WeakIntern(text); 271string textNode = Strings.WeakIntern(text); 286string interned = Strings.WeakIntern(data);
Globbing\MSBuildGlob.cs (1)
181globRoot = Strings.WeakIntern(FileUtilities.NormalizePath(globRoot).WithTrailingSlash());
Instance\TaskRegistry.cs (1)
360assemblyFile = Strings.WeakIntern(Path.Combine(directoryOfImportingFile, assemblyFile));
Microsoft.Build.Framework (3)
BackEnd\CommunicationsUtilities.cs (2)
312string key = Strings.WeakIntern((string)entry.Key); 313string value = Strings.WeakIntern((string?)entry.Value ?? string.Empty);
EscapingUtilities.cs (1)
222result = Strings.WeakIntern(result);
Microsoft.Build.Tasks.Core (4)
ListOperators\FindUnderPath.cs (4)
69Strings.WeakIntern( 75Strings.WeakIntern( 102Strings.WeakIntern( 108Strings.WeakIntern(
Microsoft.NET.StringTools.UnitTests (2)
StringTools_Tests.cs (2)
33string internedString1 = Strings.WeakIntern(str); 35string internedString2 = Strings.WeakIntern(str);
StringTools.Benchmark (2)
SpanBasedStringBuilder_Benchmark.cs (2)
58Strings.WeakIntern(sb.ToString()); 84Strings.WeakIntern(sb.ToString());