Normally i answer to the peoples questions here
but today i am posting a question for a answer :)
I have a .cs file and i want to read all function/method names from
This .cs file is not part of my project or solution other wise i
would have used reflection or codedom to do so.
The .cs file is a file on a disk to which i can accessing by giving
its physical path say "C:\Sample.cs"
Is there any possibility that i can fetch all the function names
declared in Sample.cs
Note: I am doing this for one of my requirement to find out
dependencies in code
For example If class A is using some function from class B then class
A is dependent on class B. this i need to find out and both this class files are simply a files residing on disk not
even part of my project.
User will select a directory first then any one of the .cs file in that directory and will click on button to find dependencies of that .cs file.
The application should traverse all other .cs files in that directory and find out on how many other .cs files the selected file is dependent.
View Complete Post