Migrate DiscUtils fat code to a standalone project dependency

This commit is contained in:
Gustave Monce
2025-11-01 09:42:52 +01:00
parent e838168127
commit 933e9e53b6
20 changed files with 920 additions and 7 deletions
@@ -0,0 +1,23 @@
#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
}
}
}