• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 487
  • Last Modified:

CodeDOM: Can't get an ICodeParser reference

The code couldn't be more straightforward:

   CodeDomProvider codeProvider = new CSharpCodeProvider();
   ICodeGenerator codeGenerator = codeProvider.CreateGenerator();
   ICodeParser parser = codeProvider.CreateParser();

parser is null -- What am I doing wrong?
0
barrett
Asked:
barrett
1 Solution
 
Nebulus_Commented:
I try to find the definition of CSharpCodeProvider in object browser and "CreateParser" function is not implemented.
The same situation in VBCodeProvider.
If you need a parser you can use a free version based on project Mono:

http://www.codeproject.com/csharp/CodeDOMparser.asp
0
 
barrettAuthor Commented:
Cool, thanks.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now