Click here to Skip to main content
15,899,825 members
Home / Discussions / C#
   

C#

 
AnswerRe: GridView _ Add New Record Pin
Pualee24-Feb-07 6:08
Pualee24-Feb-07 6:08 
QuestionIf I start from C,What the language should I continue to develope program on Windows? Pin
Vithaya24-Feb-07 2:51
Vithaya24-Feb-07 2:51 
AnswerRe: If I start from C,What the language should I continue to develope program on Windows? Pin
Pualee24-Feb-07 6:00
Pualee24-Feb-07 6:00 
AnswerRe: If I start from C,What the language should I continue to develope program on Windows? Pin
Luc Pattyn24-Feb-07 11:20
sitebuilderLuc Pattyn24-Feb-07 11:20 
Questionusing resource files Pin
OlaMohammed24-Feb-07 2:36
OlaMohammed24-Feb-07 2:36 
QuestionParsing source code and matching methods with regex Pin
Genbox24-Feb-07 2:20
Genbox24-Feb-07 2:20 
AnswerRe: Parsing source code and matching methods with regex Pin
Insincere Dave24-Feb-07 2:40
Insincere Dave24-Feb-07 2:40 
AnswerRe: Parsing source code and matching methods with regex [modified] Pin
Leslie Sanford24-Feb-07 9:22
Leslie Sanford24-Feb-07 9:22 
GentooBoxX wrote:
But every try I make at parsing this, both the methods and constructors gets matched as methods. The problem is that the visibility (public, private) of the method does not have to be there. example: void HelloWorld()


I've not had much experience with regex, unfortunately, so I can't suggest a regex expression that will work. However, as far as getting false positives with constructures, one way to eliminate them when you find a method is check the method's name. If the name matches that of the class, you can tag it as a constructor.

As far as finding methods in the first place, hmm... Wouldn't every line that ends with a right closing parenthesis ')' and is not followed by a semicolone indicate that the line is the beginning of a method? Just thinking out loud.

EDIT-> Using the method described in the above paragraph... watch out for comments. For example:

// This code does such and such (when value is 1)


Also, watch out for catch, using, and lock statements.

-- modified at 15:48 Saturday 24th February, 2007
GeneralRe: Parsing source code and matching methods with regex Pin
Genbox25-Feb-07 2:25
Genbox25-Feb-07 2:25 
QuestionHow To Create transparent Form Pin
Ankush Komarwar24-Feb-07 2:00
Ankush Komarwar24-Feb-07 2:00 
AnswerRe: How To Create transparent Form Pin
sharpiesharpie24-Feb-07 6:51
sharpiesharpie24-Feb-07 6:51 
QuestionDatagrid without a Table Pin
Nooie24-Feb-07 0:34
Nooie24-Feb-07 0:34 
AnswerRe: Datagrid without a Table Pin
tgrt24-Feb-07 7:10
tgrt24-Feb-07 7:10 
QuestionPutting image to right of text in ListView ColumnHeader. Pin
David Fleming23-Feb-07 22:02
David Fleming23-Feb-07 22:02 
QuestionCustomizing WINDOW? Pin
Member 323963623-Feb-07 21:57
Member 323963623-Feb-07 21:57 
AnswerRe: Customizing WINDOW? Pin
Christian Graus23-Feb-07 22:23
protectorChristian Graus23-Feb-07 22:23 
Questionsetting start up form Pin
sarojkumarjena23-Feb-07 18:25
sarojkumarjena23-Feb-07 18:25 
AnswerRe: setting start up form Pin
Stefan Troschuetz23-Feb-07 21:10
Stefan Troschuetz23-Feb-07 21:10 
GeneralRe: setting start up form Pin
sarojkumarjena23-Feb-07 21:38
sarojkumarjena23-Feb-07 21:38 
GeneralRe: setting start up form Pin
Stefan Troschuetz23-Feb-07 21:44
Stefan Troschuetz23-Feb-07 21:44 
GeneralRe: setting start up form Pin
Christian Graus23-Feb-07 22:25
protectorChristian Graus23-Feb-07 22:25 
QuestionHow to get the Name of the Item in ListView? Pin
Khoramdin23-Feb-07 17:36
Khoramdin23-Feb-07 17:36 
AnswerRe: How to get the Name of the Item in ListView? Pin
Christian Graus23-Feb-07 18:07
protectorChristian Graus23-Feb-07 18:07 
AnswerRe: How to get the Name of the Item in ListView? [modified] Pin
Khoramdin24-Feb-07 4:17
Khoramdin24-Feb-07 4:17 
Questionplaying mp3 in csharp using wmp [modified] Pin
MoKaLux23-Feb-07 15:02
MoKaLux23-Feb-07 15:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.