I have an overloaded method which have these signatures:
void Method(string a,string b);
void Method(string a,string b,string c);
void Method(string a,string b,string c,string d,string e);
What I want to do in Visual Studio IDE is to find all lines in the current project where Method is called with only less than 5 parameters (e.g. the first and second signatures in the example).
Is it possible to do this (or any plugin resharper etc. is able to that)
Try this regex in the find window:
It’s an OR basically of:
where N looks for N of alpha or whitespace followed by a comma