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.
Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed