NDepend.API Documentation
IsNotDeadCodeAttribute Class
Members 
NDepend.Attributes Namespace : IsNotDeadCodeAttribute Class
This attribute can be used to signify that despite a member could be removed without provoking any syntax error (we also say it is dead code), your intention is to not remove this member.
Syntax
[AttributeUsage(AttributeTargets.Class | 
    AttributeTargets.Constructor | 
    AttributeTargets.Delegate | 
    AttributeTargets.Enum | 
    AttributeTargets.Field | 
    AttributeTargets.Interface | 
    AttributeTargets.Method | 
    AttributeTargets.Struct)]
public sealed class IsNotDeadCodeAttribute : System.Attribute 
Remarks
Some code rules are provided by default to match dead types, methods and fields, except those tagged with this attribute.
Typically, this attribute is useful when the code element :
Inheritance Hierarchy

System.Object
   System.Attribute
      NDepend.Attributes.IsNotDeadCodeAttribute

Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

IsNotDeadCodeAttribute Members
NDepend.Attributes Namespace
HasAttribute Method
HasAttribute Method
AttributeClassesThatTagMe Property