DotNext by .NET Foundation and Contributors

<PackageReference Include="DotNext" Version="4.0.0-beta.8" />

 RuntimeFeaturesAttribute

public sealed class RuntimeFeaturesAttribute : Attribute
Indicates that the code inside of method, type, module or assembly relies on specific runtime features.
using System; using System.ComponentModel; using System.Diagnostics; namespace DotNext.Runtime.CompilerServices { [Conditional("DEBUG")] [CLSCompliant(false)] [EditorBrowsable(EditorBrowsableState.Never)] [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Module | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Constructor | AttributeTargets.Method, AllowMultiple = false, Inherited = true)] public sealed class RuntimeFeaturesAttribute : Attribute { public bool DynamicCodeCompilation { get; set; } public bool RuntimeGenericInstantiation { get; set; } public bool PrivateReflection { get; set; } } }