DotNext by Roman Sakno

<PackageReference Include="DotNext" Version="1.1.0" />

 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.Diagnostics; namespace DotNext.Runtime.CompilerServices { [Conditional("DEBUG")] [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; public bool RuntimeGenericInstantiation; public bool PrivateReflection; public bool Augmentation; } }