52 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\roslyn\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.CodeAnalysis.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
338value = new string((char*)bytesPtr, 0, characterCount);
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
338value = new string((char*)bytesPtr, 0, characterCount);
Microsoft.CodeAnalysis.CodeStyle (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
338value = new string((char*)bytesPtr, 0, characterCount);
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
338value = new string((char*)bytesPtr, 0, characterCount);
Microsoft.CodeAnalysis.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
338value = new string((char*)bytesPtr, 0, characterCount);
Microsoft.Diagnostics.DataContractReader.Legacy (4)
ClrDataAppDomain.cs (1)
98string cdacName = new string(name, 0, compareLen);
ClrDataTypeInstance.cs (1)
166string cdacName = new string(nameBuf, 0, (int)nameLenLocal - 1);
MetaDataImportImpl.cs (2)
1600string cdacStr = new string(szString, 0, compareLen); 1601string dacStr = new string(szLocal, 0, compareLen);
PresentationCore (1)
src\wpf\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
338value = new string((char*)bytesPtr, 0, characterCount);
System.Net.Http.WinHttpHandler (3)
System\Net\Http\WinHttpResponseParser.cs (3)
124headerValue = new string(pBuffer, 0, bufferLength); 135headerValue = new string(pBuffer, 0, bufferLength); 161headerValue = new string(pBuffer, 0, bufferLength);
System.Private.CoreLib (10)
Internal\Runtime\CompilerHelpers\InteropHelpers.cs (1)
87return new string((char*)buffer, 0, length);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (2)
1950decoded = dataPointer == IntPtr.Zero ? null : new string((char*)dataPointer, 0, (data->Size >> 1) - 1); 2173args[i] = dataPointer == IntPtr.Zero ? null : new string((char*)dataPointer, 0, (data->Size >> 1) - 1);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Nls.cs (1)
47data = new string(buffer, 0, ret);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
400s = new string(charPtr, 0, byteLen / 2);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (1)
66return new string((char*)ptr, 0, len);
src\runtime\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;
System\Reflection\Runtime\MethodInfos\CustomMethodMapper.String.cs (1)
59return new string((char*)(IntPtr)(args[0]), (int)(args[1]), (int)(args[2]));
System\Runtime\CompilerServices\ClassConstructorRunner.cs (1)
545str = new string(p, 0, numChars - i);
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 (1)
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\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
400s = new string(charPtr, 0, byteLen / 2);
System.ServiceModel.Primitives (2)
Internals\System\Text\BinHexEncoding.cs (2)
98throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SRP.Format(SRP.XmlInvalidBinHexSequence, new string(pch, 0, 2), charIndex + (int)(pch - _chars)))); 102throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SRP.Format(SRP.XmlInvalidBinHexSequence, new string(pch, 0, 2), charIndex + (int)(pch - _chars))));
System.ServiceProcess.ServiceController (1)
System\ServiceProcess\ServiceController.cs (1)
340string dependencyNameStr = new string(dependencyChar, 0, length);
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
638text = new string(info.dwTypeData, 0, (int)info.cch);
UIAutomationClientSideProviders (1)
MS\Internal\AutomationProxies\Misc.cs (1)
589String str = new string((char*)memAddr.ToPointer(), 0, maxLength);