NDepend.API Documentation
NbParameters Property
NDepend.CodeModel Namespace > IMethod Interface : NbParameters Property
Gets the number of parameters of a method. ref and out parameters are also counted. The this reference passed to instance methods in IL is not counted as a parameter.
Syntax
ushort NbParameters {get;}
Remarks
Recommendations:
Methods where NbParameters is higher than 5 might be painful to call and might degrade performance. You should prefer using additional properties/fields to the declaring type to handle numerous states.
Another alternative is to provide a class or structure dedicated to handle arguments passing. For example see the class System.Diagnostics.ProcessStartInfo and the method System.Diagnostics.Process.Start(ProcessStartInfo).
Requirements

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

See Also

Reference

IMethod Interface
IMethod Members