From aaa9c88cb2cad2c9ea8f22dd6b1075577fcff242 Mon Sep 17 00:00:00 2001 From: Theodore Tsirpanis Date: Fri, 2 May 2025 22:18:35 +0300 Subject: [PATCH] Type-forward `IsExternalInit` on modern .NET. --- .../System.Runtime.CompilerServices.IsExternalInit.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Utility/Polyfill/System.Runtime.CompilerServices.IsExternalInit.cs b/src/Utility/Polyfill/System.Runtime.CompilerServices.IsExternalInit.cs index f4b6d744..065bf49c 100644 --- a/src/Utility/Polyfill/System.Runtime.CompilerServices.IsExternalInit.cs +++ b/src/Utility/Polyfill/System.Runtime.CompilerServices.IsExternalInit.cs @@ -1,4 +1,8 @@ -#if !NET5_0_OR_GREATER +#if NET5_0_OR_GREATER +using System.Runtime.CompilerServices; + +[assembly:TypeForwardedTo(typeof(IsExternalInit))] +#else using System.ComponentModel; namespace System.Runtime.CompilerServices;