I am reading out .cs-files and want to store all parameters per method with at least two parameters. So every two word-combination between paranthesses like follows:
public static void MyFunction(string Param1, int Param2, List<string> Param3)
It should extract string Param1
, int Param2
and List<string> Param3
into a collection. There is always a minimum of two parameters when using this.
So far I got the following Regex:
([A-Za-z0-9<>]+\s[a-z0-9]+)
This scans over the entire method header so includes public static
as a match too.
Any suggestions on how to fix this?
Thanks.