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