Click here to Skip to main content
15,891,184 members
Home / Discussions / C#
   

C#

 
AnswerRe: Build feature like "Find all references" in VS2008 Pin
Pete O'Hanlon18-Oct-10 1:04
mvePete O'Hanlon18-Oct-10 1:04 
GeneralRe: Build feature like "Find all references" in VS2008 Pin
ndkit18-Oct-10 17:00
ndkit18-Oct-10 17:00 
AnswerRe: Build feature like "Find all references" in VS2008 Pin
Eddy Vluggen18-Oct-10 7:33
professionalEddy Vluggen18-Oct-10 7:33 
GeneralRe: Build feature like "Find all references" in VS2008 Pin
ndkit18-Oct-10 16:53
ndkit18-Oct-10 16:53 
AnswerRe: Build feature like "Find all references" in VS2008 Pin
T M Gray18-Oct-10 10:45
T M Gray18-Oct-10 10:45 
AnswerRe: Build feature like "Find all references" in VS2008 Pin
Luc Pattyn18-Oct-10 11:03
sitebuilderLuc Pattyn18-Oct-10 11:03 
GeneralRe: Build feature like "Find all references" in VS2008 Pin
ndkit18-Oct-10 19:25
ndkit18-Oct-10 19:25 
GeneralRe: Build feature like "Find all references" in VS2008 Pin
Luc Pattyn19-Oct-10 0:14
sitebuilderLuc Pattyn19-Oct-10 0:14 
That is a big job. The proper way to do this is by creating a full C# parser, and let it loose on the source files of all the projects in the solution(s). Are you sure you can't just use your IDE's class browsing facilities?

You could cheat quite a bit, like so:
- just scan all source files for curly brackets { and } to locate classes; if you assume namespaces are used, a class would be at nesting level 2 of {};
- within each class, search for the type name you're interested in;
- within each class that mentions the type name of interest, look for the type's member you're interested in.

This will yield some false positives, as it:
- does not discern code from comment;
- does not recognize string literals;
- does not associate the member name with the type you're looking for (i.e. while looking for:
TextBox.Text, it will also find
TextBox tb;
string s=myButton.Text;


However it will also not work well with nested types, e.g. a class nested inside another class. When the inner class holds what you are looking for, it would flag the outer class as positive (hence even more false positives).

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.


QuestionKeeping a Linked List generic untill the end, is it possible? Pin
Ian Durward17-Oct-10 22:14
Ian Durward17-Oct-10 22:14 
AnswerRe: Keeping a Linked List generic untill the end, is it possible? Pin
Sauro Viti17-Oct-10 22:20
professionalSauro Viti17-Oct-10 22:20 
AnswerRe: Keeping a Linked List generic untill the end, is it possible? Pin
Ian Durward17-Oct-10 22:41
Ian Durward17-Oct-10 22:41 
GeneralRe: Keeping a Linked List generic untill the end, is it possible? [modified] Pin
Keith Barrow17-Oct-10 22:47
professionalKeith Barrow17-Oct-10 22:47 
GeneralRe: Keeping a Linked List generic untill the end, is it possible? Pin
Ian Durward17-Oct-10 23:07
Ian Durward17-Oct-10 23:07 
GeneralRe: Keeping a Linked List generic untill the end, is it possible? Pin
Keith Barrow17-Oct-10 23:13
professionalKeith Barrow17-Oct-10 23:13 
GeneralRe: Keeping a Linked List generic untill the end, is it possible? [modified] Pin
Ian Durward18-Oct-10 0:13
Ian Durward18-Oct-10 0:13 
GeneralRe: Keeping a Linked List generic untill the end, is it possible? Pin
Keith Barrow18-Oct-10 5:27
professionalKeith Barrow18-Oct-10 5:27 
GeneralRe: Keeping a Linked List generic untill the end, is it possible? Pin
_Erik_19-Oct-10 4:28
_Erik_19-Oct-10 4:28 
AnswerRe: Keeping a Linked List generic untill the end, is it possible? Pin
Keith Barrow17-Oct-10 22:42
professionalKeith Barrow17-Oct-10 22:42 
GeneralRe: Keeping a Linked List generic untill the end, is it possible? Pin
Ian Durward17-Oct-10 22:51
Ian Durward17-Oct-10 22:51 
QuestionProblem running a Web Service in a Window Service Pin
Varun Sareen17-Oct-10 19:49
Varun Sareen17-Oct-10 19:49 
AnswerRe: Problem running a Web Service in a Window Service Pin
Abhinav S17-Oct-10 20:28
Abhinav S17-Oct-10 20:28 
GeneralRe: Problem running a Web Service in a Window Service Pin
Varun Sareen17-Oct-10 20:49
Varun Sareen17-Oct-10 20:49 
GeneralRe: Problem running a Web Service in a Window Service Pin
Abhinav S17-Oct-10 22:05
Abhinav S17-Oct-10 22:05 
GeneralRe: Problem running a Web Service in a Window Service Pin
Varun Sareen18-Oct-10 19:00
Varun Sareen18-Oct-10 19:00 
Questionhow to get x,y coordinates when drawing rectangle on the picture box Pin
ash_ng17-Oct-10 19:37
ash_ng17-Oct-10 19:37 

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.