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, 7and Linux, MacOS with net10.0, net9.0 or net8.0 installed

See Also

Reference

CannotDecreaseVisibilityAttribute Members
NDepend.Attributes Namespace
CouldBePrivate Property
NDepend.Reserved.CQLinq.ExtensionMethodsCQLinqDependency.HasAttribute(NDepend.CodeModel.IAttributeTarget,System.String)
HasAttribute Method
AttributeClassesThatTagMe Property