NDepend.API Documentation
CouldBeProtected Property
NDepend.CodeModel Namespace > IMember Interface : CouldBeProtected Property
Gets a value indicating whether this member is declared as public, but could be declared as protected in C# (Protected in VB.NET) within the context of the analyzed application.
Syntax
bool CouldBeProtected {get;}
Remarks
A public member can be declared as protected if it is not used outside of the classes that derive from the class it is declared in.
Requirements

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

See Also

Reference

IMember Interface
IMember Members