Monday, 9 September 2013

Find a class its .cs file in project

Find a class its .cs file in project

How can I find the .cs file which contains a specified class in a project
by code?
I imagine it could look like this:
string pathToFoo = ClassFileFinder.FindClassPath(typeof(Foo));

No comments:

Post a Comment