CodeDOM: Parsing and Generating C#

  • Thread starter Thread starter John Wood
  • Start date Start date
J

John Wood

Is it possible to use CodeDOM to parse a project's C# source files, and then
use it to generate the source from the given structures in order to reformat
all your code?
 
Ignore that, it seems that CreateParser isn't implemented in this ver of
..net so that won't work.
 
Hi John,

You are right - the parser is not exposed to the general public (but it is
of course implemented - how the C# compiler would work otherwise? ;-) )
 
Hi John

If you intend to use this information at design time you can use the VS
CodeModel. This only works through VS however.
 

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