1 instantiation of CodePagesEncodingProvider
System.Text.Encoding.CodePages (1)
System\Text\CodePagesEncodingProvider.cs (1)
13private static readonly EncodingProvider s_singleton = new CodePagesEncodingProvider();
40 references to CodePagesEncodingProvider
csc (1)
src\Compilers\Shared\BuildClient.cs (1)
108System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance);
Microsoft.Build (1)
Xml\XmlReaderExtension.cs (1)
49Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
Microsoft.Build.Tasks.Core (1)
ResourceHandling\MSBuildResXReader.cs (1)
247Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
Microsoft.Build.Tasks.UnitTests (1)
ResourceHandling\MSBuildResXReader_Tests.cs (1)
164Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
Microsoft.CodeAnalysis (2)
EncodedStringText.cs (2)
34if (CodePagesEncodingProvider.Instance != null) 38Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
Microsoft.CodeAnalysis.CodeStyle (2)
src\Compilers\Core\Portable\EncodedStringText.cs (2)
34if (CodePagesEncodingProvider.Instance != null) 38Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
Microsoft.CodeAnalysis.Features.UnitTests (2)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (2)
42Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); 905Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Services\BrokeredServiceBase.cs (1)
46Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
Microsoft.CodeAnalysis.Test.Utilities (2)
EncodingTestHelpers.cs (2)
20Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); 30foreach (var info in CodePagesEncodingProvider.Instance.GetEncodings())
Microsoft.CodeAnalysis.Workspaces (2)
src\Compilers\Core\Portable\EncodedStringText.cs (2)
34if (CodePagesEncodingProvider.Instance != null) 38Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
MSBuild (1)
XMake.cs (1)
1957Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
PresentationFramework (1)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Text\InternalEncoding.cs (1)
18Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
System.Text.Encoding.CodePages (15)
System\Text\BaseCodePageEncoding.cs (1)
235Stream? stream = typeof(CodePagesEncodingProvider).Assembly.GetManifestResourceStream(tableName);
System\Text\BaseCodePageEncoding.netcoreapp.cs (1)
37internal static unsafe EncodingInfo [] GetEncodings(CodePagesEncodingProvider provider)
System\Text\DecoderNLS.cs (5)
92fixed (byte* pBytes = &CodePagesEncodingProvider.GetNonNullPinnableReference(bytes)) 141fixed (byte* pBytes = &CodePagesEncodingProvider.GetNonNullPinnableReference(bytes)) 142fixed (char* pChars = &CodePagesEncodingProvider.GetNonNullPinnableReference(chars)) 194fixed (byte* pBytes = &CodePagesEncodingProvider.GetNonNullPinnableReference(bytes)) 195fixed (char* pChars = &CodePagesEncodingProvider.GetNonNullPinnableReference(chars))
System\Text\EncoderNLS.cs (5)
90fixed (char* pChars = &CodePagesEncodingProvider.GetNonNullPinnableReference(chars)) 130fixed (char* pChars = &CodePagesEncodingProvider.GetNonNullPinnableReference(chars)) 131fixed (byte* pBytes = &CodePagesEncodingProvider.GetNonNullPinnableReference(bytes)) 179fixed (char* pChars = &CodePagesEncodingProvider.GetNonNullPinnableReference(chars)) 180fixed (byte* pBytes = &CodePagesEncodingProvider.GetNonNullPinnableReference(bytes))
System\Text\EncodingNLS.cs (3)
120fixed (byte* pBytes = &CodePagesEncodingProvider.GetNonNullPinnableReference(bytes)) 165fixed (byte* pBytes = &CodePagesEncodingProvider.GetNonNullPinnableReference(bytes)) 257fixed (char* pChars = &CodePagesEncodingProvider.GetNonNullPinnableReference(chars))
System.Windows.Forms (3)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (3)
2831encodedBytes = (CodePagesEncodingProvider.Instance.GetEncoding(0) ?? Encoding.UTF8).GetBytes(str); 2875string str = (CodePagesEncodingProvider.Instance.GetEncoding(0) ?? Encoding.UTF8).GetString(bytes); 2968result = (CodePagesEncodingProvider.Instance.GetEncoding(0) ?? Encoding.UTF8).GetString(bytes, 0, bytes.Length);
System.Windows.Forms.Design.Tests (2)
System\Resources\Tools\StronglyTypedResourceBuilderTests.cs (2)
467Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); 484Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
System.Windows.Forms.Tests (1)
System\Windows\Forms\RichTextBoxTests.cs (1)
9756int currentCodePage = (CodePagesEncodingProvider.Instance.GetEncoding(0) ?? Encoding.UTF8).CodePage;
vbc (1)
src\Compilers\Shared\BuildClient.cs (1)
108System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance);
VBCSCompiler (1)
src\Compilers\Shared\BuildClient.cs (1)
108System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance);