?
Solved

CodeDOM: Can't get an ICodeParser reference

Posted on 2003-02-27
2
Medium Priority
?
476 Views
Last Modified: 2010-10-05
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
Comment
Question by:barrett
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
Nebulus_ earned 800 total points
ID: 8040554
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
 

Author Comment

by:barrett
ID: 8042739
Cool, thanks.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses
Course of the Month8 days, 23 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question