mirror of
https://github.com/ReneLergner/WPinternals.git
synced 2026-06-14 03:16:40 +10:00
23 lines
435 B
C#
23 lines
435 B
C#
#if !NET40 && !NET45
|
|
using System.Text;
|
|
#endif
|
|
|
|
namespace DiscUtils.CoreCompat
|
|
{
|
|
public static class EncodingHelper
|
|
{
|
|
private static bool _registered;
|
|
|
|
public static void RegisterEncodings()
|
|
{
|
|
if (_registered)
|
|
return;
|
|
|
|
_registered = true;
|
|
|
|
#if !NET40 && !NET45
|
|
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
|
|
#endif
|
|
}
|
|
}
|
|
} |