I want to combine the name of the method (with parameters) and the name of the property. I do not want to include accessors in the match. For example, I got a class like this:
public class test
{
public static string NA = "n/a";
public static DateTime DateParser(string dateToBeParsed)
{
DateTime returnValue = new DateTime();
DateTime.TryParse(dateToBeParsed, GetCulture(), System.Globalization.DateTimeStyles.AssumeLocal , out returnValue);
return returnValue;
}
}
For the class name, I use this regular expression: (? <= Class \ s) [^ \ s] + for im methods trying something like this: [^ \ s] + (? = () , But this will select the whole text with ( ). For methods, I need to select the line that has ( and Accessories, such as public, private and protected. How to do this without including this in the final match? I only need the method name and parameters in brackets.
source
share