Parsing C# source file

  • Thread starter Thread starter Raghu
  • Start date Start date
R

Raghu

I need to parse a given C# source file and look at the declaration of the
classes contained along with scope (private, public etc.). How would one go
about doing this through System.CodeDom or related namespaces?

Thanks.
Raghu/..
 
Is there way to get the C# parser out .net framework some how? The
CSharpCodeProvider class does not current implement CreateParser method.
 
you might want to look at the Mono project for their c# parser source code, it's completely written in C#
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top