DotNext by .NET Foundation and Contributors

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

 RuntimeFeaturesAttribute

public sealed class RuntimeFeaturesAttribute : Attribute
Indicates that the code inside of method, type, module or assembly relies on specific runtime features.
public bool DynamicCodeCompilation { get; set; }

Indicates that code relies on dynamic IL code generation or compilation of Expression Trees.

public bool PrivateReflection { get; set; }

Indicates that code relies on reflection of private or internal members.

public bool RuntimeGenericInstantiation { get; set; }

Indicates that code relies on MakeGenericMethod or MakeGenericType calls.