25 references to Instance
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.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);