<PackageReference Include="System.Security.Permissions" Version="10.0.0-preview.5.25277.114" />

System.ExceptionPolyfills

static class ExceptionPolyfills
namespace System { internal static class ExceptionPolyfills { public sealed class <>E__0 { public static void ThrowIfNull(object argument, string paramName = null); } public sealed class <>E__1 { public static void ThrowIf(bool condition, object instance); public static void ThrowIf(bool condition, Type type); } public static void ThrowIfNull(object argument, string paramName = null); public static void ThrowIf(bool condition, object instance); public static void ThrowIf(bool condition, Type type); } }