NDepend.API Documentation
CannotDecreaseVisibilityAttribute Class
Members 
NDepend.Attributes Namespace : CannotDecreaseVisibilityAttribute Class
This attribute can be used to signify that despite a member could have a lower visibility without provoking any syntax error, your intention is to not change this member visibility.
Syntax
[AttributeUsage(AttributeTargets.Class | 
    AttributeTargets.Constructor | 
    AttributeTargets.Delegate | 
    AttributeTargets.Enum | 
    AttributeTargets.Field | 
    AttributeTargets.Interface | 
    AttributeTargets.Method | 
    AttributeTargets.Struct)]
public sealed class CannotDecreaseVisibilityAttribute : System.Attribute 
Remarks
Default Visibility code rules take account of this attribute.
Compare IMember.NDepend.CodeModel.IMember.Visibility and IMember.NDepend.CodeModel.IMember.OptimalVisibility values to detect members whose visibility can be decreased.
Inheritance Hierarchy

System.Object
   System.Attribute
      NDepend.Attributes.CannotDecreaseVisibilityAttribute

Requirements

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

See Also

Reference

CannotDecreaseVisibilityAttribute Members
NDepend.Attributes Namespace
CouldBePrivate Property
HasAttribute Method
HasAttribute Method
AttributeClassesThatTagMe Property