المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Finding class and method definitions in .cs files



C# Programming
09-14-2009, 03:51 AM
Hello everyone!

I'm developing a simple app that would allow me to index .cs files based on classes and methods, for example:
I would like to supply a .cs file and get as a result a list of all classes and methods, related to those classes (including their source and line numbers).

I tried using some regex but was unsuccessful.
Could some one please help me finding the right regex for that, or maybe there is even a better way to accomplish that?

Thanks, Leon.