59 references to string
dotnet-svcutil-lib (11)
FrameworkFork\Microsoft.Xml\Xml\Base64Decoder.cs (2)
191throw new XmlException(ResXml.Xml_InvalidBase64Value, new string(pChars, 0, (int)(pCharsEndPos - pChars))); 226throw new XmlException(ResXml.Xml_InvalidBase64Value, new string(pChars, 0, (int)(pCharsEndPos - pChars)));
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\XmlBinaryReader.cs (1)
2356return new String(p, 0, cch);
FrameworkFork\Microsoft.Xml\Xml\BinHexDecoder.cs (1)
219throw new XmlException(ResXml.Xml_InvalidBinHexValue, new string(pChars, 0, (int)(pCharsEndPos - pChars)));
FrameworkFork\System.Runtime.Serialization\System\Text\Base64Encoding.cs (4)
96throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(string.Format(SRSerialization.XmlInvalidBase64Sequence, new string(pch, 0, 4), index + (int)(pch - _chars)))); 106throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(string.Format(SRSerialization.XmlInvalidBase64Sequence, new string(pch, 0, 4), index + (int)(pch - _chars)))); 167throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(string.Format(SRSerialization.XmlInvalidBase64Sequence, new string(pch, 0, 4), charIndex + (int)(pch - _chars)))); 177throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(string.Format(SRSerialization.XmlInvalidBase64Sequence, new string(pch, 0, 4), charIndex + (int)(pch - _chars))));
FrameworkFork\System.Runtime.Serialization\System\Text\BinHexEncoding.cs (2)
87throw new FormatException(string.Format(SRSerialization.XmlInvalidBinHexSequence, new string(pch, 0, 2), charIndex + (int)(pch - _chars))); 91throw new FormatException(string.Format(SRSerialization.XmlInvalidBinHexSequence, new string(pch, 0, 2), charIndex + (int)(pch - _chars)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlStreamNodeWriter.cs (1)
469string tmp = new string(charsStart, 0, (int)(chars - charsStart));
GenerateDocumentationAndConfigFiles (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
338value = new string((char*)bytesPtr, 0, characterCount);
Metrics (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
338value = new string((char*)bytesPtr, 0, characterCount);
Metrics.Legacy (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
338value = new string((char*)bytesPtr, 0, characterCount);
Microsoft.AspNetCore.Cryptography.Internal (2)
SafeHandles\BCryptAlgorithmHandle.cs (1)
83return new string(pBuffer, 0, (int)numCharsWithoutNull);
SafeHandles\SafeLibraryHandle.cs (1)
75return new string((char*)messageHandle.DangerousGetHandle(), 0, numCharsOutput).Trim();
Microsoft.AspNetCore.Cryptography.Internal.Tests (4)
SafeHandles\SecureLocalAllocHandleTests.cs (1)
27Assert.Equal(expected, new string((char*)duplicateHandle.DangerousGetHandle(), 0, expected.Length)); // contents the same data
UnsafeBufferUtilTests.cs (3)
57string actual = new string((char*)testHandle.DangerousGetHandle(), 0, expected.Length); 79string actual = new string(dest, 0, expected.Length); 98string actual = new string((char*)testHandle.DangerousGetHandle(), 0, expected.Length);
Microsoft.Build.Framework (2)
NativeMethods.cs (2)
1507return new string(buffer, startIndex: 0, length: pathLength); 1537return AreStringsEqual(buffer, fullPathLength, path) ? path : new string(buffer, startIndex: 0, length: fullPathLength);
Microsoft.CodeAnalysis.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
338value = new string((char*)bytesPtr, 0, characterCount);
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
338value = new string((char*)bytesPtr, 0, characterCount);
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
338value = new string((char*)bytesPtr, 0, characterCount);
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
338value = new string((char*)bytesPtr, 0, characterCount);
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
338value = new string((char*)bytesPtr, 0, characterCount);
Microsoft.CodeAnalysis.PublicApiAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
338value = new string((char*)bytesPtr, 0, characterCount);
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
338value = new string((char*)bytesPtr, 0, characterCount);
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
338value = new string((char*)bytesPtr, 0, characterCount);
PresentationCore (1)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\CharacterBuffer.cs (1)
459stringBuilder.Append(new string(_unsafeString, characterOffset, characterLength));
PresentationFramework (2)
MS\Internal\WindowsRuntime\Generated\WinRT\IInspectable.cs (1)
116return new string(buffer, 0, (int)length);
MS\Internal\WindowsRuntime\Generated\WinRT\Marshalers.cs (1)
96return new string(buffer, 0, (int)length);
Roslyn.Diagnostics.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
338value = new string((char*)bytesPtr, 0, characterCount);
System.Private.CoreLib (12)
src\libraries\Common\src\System\Memory\FixedBufferExtensions.cs (1)
17return new string(c, 0, span.GetFixedBufferStringLength());
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (2)
1936decoded = dataPointer == IntPtr.Zero ? null : new string((char*)dataPointer, 0, (data->Size >> 1) - 1); 2157args[i] = dataPointer == IntPtr.Zero ? null : new string((char*)dataPointer, 0, (data->Size >> 1) - 1);
src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Nls.cs (1)
46data = new string(buffer, 0, ret);
src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.cs (1)
166return new string(output, 0, outputLength);
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
404s = new string(charPtr, 0, byteLen / 2);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (1)
66return new string((char*)ptr, 0, len);
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.FullGlobalizationData.cs (2)
30windowsId = allocate ? new string(buffer, 0, length) : null; 95ianaId = allocate ? new string(buffer, 0, length) : null;
src\System\Reflection\MdImport.cs (1)
366return new string(stringMetadataEncoding, 0, length);
src\System\StubHelpers.cs (2)
318ret = new string((char*)bstr, 0, (int)(length / 2)); 466return new string((char*)nativeHome, 0, length);
System.Private.DataContractSerialization (4)
System\Text\Base64Encoding.cs (4)
80throw new FormatException(SR.Format(SR.XmlInvalidBase64Sequence, new string(pch, 0, 4), index + (int)(pch - _chars))); 90throw new FormatException(SR.Format(SR.XmlInvalidBase64Sequence, new string(pch, 0, 4), index + (int)(pch - _chars))); 140throw new FormatException(SR.Format(SR.XmlInvalidBase64Sequence, new string(pch, 0, 4), charIndex + (int)(pch - _chars))); 150throw new FormatException(SR.Format(SR.XmlInvalidBase64Sequence, new string(pch, 0, 4), charIndex + (int)(pch - _chars)));
System.Private.Xml (2)
System\Xml\Xsl\Runtime\XslNumber.cs (1)
364return new string(result, 0, newLen);
System\Xml\Xsl\XPathConvert.cs (1)
2961return new string(pBuf, 0, (int)(pch - pBuf));
System.Reflection.Metadata (1)
System\Reflection\Internal\Utilities\MemoryBlock.cs (1)
271return new string((char*)ptr, 0, byteCount / sizeof(char));
System.Resources.Extensions (1)
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
404s = new string(charPtr, 0, byteLen / 2);
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
638text = new string(info.dwTypeData, 0, (int)info.cch);
System.Windows.Forms.Tests (1)
System\Windows\Forms\DataObjectTests.cs (1)
2612new string(text, 0, "Path1".Length + 1 + "Path2".Length + 1 + 1).Should().Be("Path1\0Path2\0\0");
Test.Utilities (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
338value = new string((char*)bytesPtr, 0, characterCount);
Text.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
338value = new string((char*)bytesPtr, 0, characterCount);
UIAutomationClientSideProviders (1)
MS\Internal\AutomationProxies\Misc.cs (1)
589String str = new string((char*)memAddr.ToPointer(), 0, maxLength);