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#
 
Back
Top