Title |
Test
Find
C# Methods
|
Expression |
(private|public|protected)\s\w(.)*\((.)*\)[^;] |
Description |
Finds all public or private C# methods with a return type, with or without parameters. Excludes private and public members which may look like a method. Private and public members that can be confused with methods typically have a semicolon after the closing parentheses.
NOTE: Visual Studio uses a non-standard regular expression syntax for Find and Replace. The eqivalent pattern is: (private|public|protected):b:w(.)*\((.)*\)$ |
Matches |
public void SQLSelect(Form fo) |
Non-Matches |
private G G = new G(); |
Author |
Rating:
Robert S. Robbins
|
Source |
|
Your Rating |
|
Title: Some problems with this one... it seems
Name: Yoann
Date: 9/4/2008 5:10:54 AM
Comment:
Hi !
I think there are some issues with this regexp :
- methods that only starts with "void" on a return type, may not be found,
- internal methods may not be found,
- "public class xxx" is found...
++