90 references to string
ILCompiler.ReadyToRun (1)
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (1)
382string message = szMessage != null ? new string(szMessage) : "JIT Exception";
ILCompiler.RyuJit (1)
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (1)
382string message = szMessage != null ? new string(szMessage) : "JIT Exception";
Microsoft.AspNetCore.Cryptography.Internal (1)
SafeHandles\NCryptDescriptorHandle.cs (1)
32return new String((char*)ruleStringHandle.DangerousGetHandle());
Microsoft.AspNetCore.Server.HttpSys (1)
_generated\75\Windows.Win32.PCWSTR.g.cs (1)
69 public override string ToString() => this.Value is null ? null : new string(this.Value);
Microsoft.AspNetCore.Server.IIS (1)
_generated\40\Windows.Win32.PCWSTR.g.cs (1)
69 public override string ToString() => this.Value is null ? null : new string(this.Value);
Microsoft.Diagnostics.DataContractReader.Legacy (47)
ClrDataMethodDefinition.cs (1)
373string cdacName = new string(name);
ClrDataMethodInstance.cs (1)
221string cdacName = new string(nameBuf);
ClrDataModule.cs (3)
365string fullName = new string(name); 588Debug.Assert(name == null || new ReadOnlySpan<char>(nameLocal, 0, (int)nameLenLocal - 1).SequenceEqual(new string(name))); 638Debug.Assert(name == null || new ReadOnlySpan<char>(nameLocal, 0, (int)nameLenLocal - 1).SequenceEqual(new string(name)));
ClrDataTypeDefinition.cs (2)
170string dacName = new(pNameBufLocal); 171string cdacName = new(nameBuf);
ClrDataValue.cs (3)
413return StartEnumFields(name is null ? null : new string(name), nameFlags, fieldFlags, fromType, handle); 571Debug.Assert(new string(str) == new string(strLocalPtr));
MetaDataImportImpl.cs (25)
486string cdacName = new string(szTypeDef); 487string dacName = new string(szLocal); 536string cdacName = new string(szName); 537string dacName = new string(szLocal); 606string cdacName = new string(szMethod); 607string dacName = new string(szLocal); 703string cdacName = new string(szField); 704string dacName = new string(szLocal); 882string cdacName = new string(wzname); 883string dacName = new string(szLocal); 997string targetName = new string(szName); 1102string targetName = new string(szTypeDef); 1294string cdacName = new string(szMember); 1295string dacName = new string(szLocal); 1460string cdacName = new string(szName); 1461string dacName = new string(szLocal); 1783string cdacName = new string(szName); 1784string dacName = new string(szLocal); 1936string cdacName = new string(szName); 1937string dacName = new string(szLocal); 2048string cdacName = new string(szName); 2049string dacName = new string(szLocal); 2132string cdacName = new string(szName); 2133string dacName = new string(szNameLocal); 2215string targetName = new string(szName);
SOSDacImpl.cs (12)
289Debug.Assert(name == null || new ReadOnlySpan<char>(nameLocal, 0, (int)neededLocal - 1).SequenceEqual(new string(name))); 575Debug.Assert(name == null || new ReadOnlySpan<char>(fileNameLocal, 0, (int)neededLocal - 1).SequenceEqual(new string(name))); 1086Debug.Assert(location == null || new ReadOnlySpan<char>(locationLocal, 0, (int)neededLocal - 1).SequenceEqual(new string(location))); 1265Debug.Assert(frameName == null || new ReadOnlySpan<char>(nameLocal, 0, (int)neededLocal).SequenceEqual(new string(frameName)), 1266$"cDAC: {new string(frameName)}, DAC: {new string(nameLocal, 0, (int)neededLocal)}"); 2760Debug.Assert(name == null || new ReadOnlySpan<char>(nameLocal, 0, (int)neededLocal - 1).SequenceEqual(new string(name)), $"cDAC: {new string(name)}, DAC: {new string(nameLocal, 0, (int)neededLocal - 1)}"); 3087Debug.Assert(mtName == null || new ReadOnlySpan<char>(mtNameLocal, 0, (int)neededLocal - 1).SequenceEqual(new string(mtName))); 3402Debug.Assert(className == null || new ReadOnlySpan<char>(classNameLocal, 0, (int)neededLocal - 1).SequenceEqual(new string(className))); 3559Debug.Assert(stringData == null || new ReadOnlySpan<char>(stringDataLocal, 0, new string(stringData).Length).SequenceEqual(new string(stringData))); 3751Debug.Assert(fileName == null || new ReadOnlySpan<char>(fileNameLocal, 0, (int)neededLocal - 1).SequenceEqual(new string(fileName)));
Microsoft.ML.Maml (1)
MAML.cs (1)
39string args = new string(psz);
Microsoft.Private.Windows.Core (2)
_generated\190\Windows.Win32.PCWSTR.g.cs (1)
69 public override string ToString() => this.Value is null ? null : new string(this.Value);
Windows\Win32\Foundation\PWSTR.cs (1)
15string value = new(Value);
Microsoft.Win32.Registry (1)
Microsoft\Win32\RegistryKey.cs (1)
909names[cpt++] = new string(c);
PresentationCore (1)
MS\Internal\Text\TextInterface\FontCollectionLoader.cs (1)
57string uriString = new string((char*)collectionKey);
PresentationFramework (1)
System\Windows\Controls\PasswordBox.cs (1)
160password = new string((char*)ptr);
System.Diagnostics.EventLog (2)
System\Diagnostics\EventLogEntry.cs (2)
288return new string(bufDomainName) + "\\" + new string(bufUserName);
System.DirectoryServices.AccountManagement (4)
System\DirectoryServices\AccountManagement\NetCred.cs (2)
88parsedDomainName = new string(splitDomain); 89parsedUserName = new string(splitUsername);
System\DirectoryServices\AccountManagement\Utils.cs (2)
635name = new string(sbName); 636domainName = new string(sbDomainName);
System.Drawing.Common (6)
System\Drawing\Printing\PrinterSettings.cs (6)
175array[i] = new string(info[i].pPrinterName); 5731 => new((char*)names + names->wDeviceOffset), 5742 => new((char*)names + names->wOutputOffset), 1037_driverName = new((char*)names + names->wDriverOffset); 1038_printerName = new((char*)names + names->wDeviceOffset); 1039OutputPort = new((char*)names + names->wOutputOffset);
System.Private.CoreLib (12)
Internal\Runtime\CompilerHelpers\StartupCode\StartupCodeHelpers.Extensions.cs (1)
28args[i] = new string(argv[i]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Nls.cs (1)
68string calendarInfo = new string(lpCalendarInfoString);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Icu.cs (3)
183windowsName = new string(buffer); // the name passed to subsequent ICU calls 207windowsName = new string(buffer); // the name passed to subsequent ICU calls 249return new string(buffer);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Nls.cs (4)
26return new string(pBuffer); 353string cultureName = new string(lpLocaleString); 375((EnumData*)contextHandle)->strings.Add(new string(lpLocaleString)); 396((EnumData*)lParam)->strings.Add(new string(lpTimeFormatString));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (1)
58return new string((char*)ptr);
src\runtime\src\libraries\System.Private.CoreLib\src\System\StartupHookProvider.cs (1)
81ParseStartupHook(ref startupHook, new string(pStartupHookPart));
System\Reflection\Runtime\MethodInfos\CustomMethodMapper.String.cs (1)
52return new string((char*)(IntPtr)(args[0]));
System.Private.Windows.Core (2)
_generated\191\Windows.Win32.PCWSTR.g.cs (1)
69 public override string ToString() => this.Value is null ? null : new string(this.Value);
Windows\Win32\Foundation\PWSTR.cs (1)
15string value = new(Value);
System.Security.Cryptography (1)
System\Security\Cryptography\CngAsnFormatter.cs (1)
40return new string(bufferPtr);
System.Security.Cryptography.Pkcs (1)
Internal\Cryptography\Pal\Windows\HelpersWindows.cs (1)
199issuer = new string(namePtr);
System.Text.Encoding.CodePages (1)
System\Text\BaseCodePageEncoding.netcoreapp.cs (1)
66default: codePageName = new string(&codePageIndex.CodePageName); break;
System.Windows.Forms.Primitives (1)
Windows\Win32\UI\Shell\FolderBrowserHelper.cs (1)
67return success ? new(b) : null;
UIAutomationClientSideProviders (2)
MS\Internal\AutomationProxies\WindowsMenu.cs (1)
2621string menuText = new string(text);
MS\Internal\AutomationProxies\WindowsRichEdit.cs (1)
655text = new string((char*)globalMem);