<PackageReference Include="System.Drawing.Common" Version="10.0.0-rc.1.25451.107" />

FeatureSwitches

static class FeatureSwitches
namespace System.Private.Windows { internal static class FeatureSwitches { internal static bool EnableUnsafeBinaryFormatterSerialization { get { bool isEnabled; return !AppContext.TryGetSwitch("System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization", out isEnabled) | isEnabled; } } } }