I have a method in which its last argument is params string[]. I wish to search an assembly and count the number of usages in which the params argument is passed with at least one value.
There are several hundreds of calls to this method, most of which do not pass in anything to this last params argument, so using something like ReSharper’s Find Usages and counting those usages which do not pass in anything to the params argument is not practical.
How would I do this using reflection/disassembly? Or, is there a tool that could do this?
One simple way:
paramsone