Table of Contents

Class CannotDecreaseVisibilityAttribute

Namespace
NDepend.Attributes
Assembly
NDepend.API.dll

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.

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Enum|AttributeTargets.Constructor|AttributeTargets.Method|AttributeTargets.Field|AttributeTargets.Interface|AttributeTargets.Delegate)]
public sealed class CannotDecreaseVisibilityAttribute : Attribute
Inheritance
CannotDecreaseVisibilityAttribute
Inherited Members
Extension Methods

Remarks

Default Visibility code rules take account of this attribute.
Compare IMember.Visibility and IMember.OptimalVisibility values to detect members whose visibility can be decreased.

Constructor (1)

CannotDecreaseVisibilityAttribute()

Create a new instance of the CannotDecreaseVisibilityAttribute class.

public CannotDecreaseVisibilityAttribute()

See Also