RuntimeFeaturesAttribute
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; }
}
}