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

See Also

Reference

IMember Interface
IMember Members