Creating and Initializing Objects in CodeDom [Benet Devereux]

The Forms Designer in Visual Studio 2005 takes away a lot of the drudgery of GUI development. All you do is drag and drop the components you need onto a panel, arrange them where you want them, and VS will generate the code to initialize them automatically; all you need to do is write event-handlers….


Why aren’t there parsers for CodeDom? [David Gutierrez]

This is an interesting question, and the answer is a bit more than just “historical reasons.” It’s hard. Yes, it’s just plain harder to parse code than it is to emit it.  Parsing code is a good portion of what compilers do, and since most compilers are written in native code, this probably means duplicating…


Language features which can’t be expressed using CodeDOM in Whidbey. [Vinaya Bhushana Gattam Reddy]

The CodeDom provides a powerful way for applications to emit source code in a variety of languages.  CodeDom provides necessary infrastructure to generate common language features that are necessary across the languages instead of providing ways to generate every single feature that a high level languages supports. This blog entry lists some known C# and…


CodeDom now supports a way to generate code for CodeTypeMember [Vinaya Bhushana Gattam Reddy]

CodeDom now supports a way to generate code for CodeTypeMember. In V1.1 there is no way to generate a method without a type information using CodeDom. There are several tools and applications including ASP.Net had requirements to create a method without the type or namespace information. Currently one has to parse the generated code or…


An intro to CodeDom [David Gutierrez]

I recently gave a talk on CodeDom for compiler writers, and I thought I would adapt some of those slides here as a basic intro to CodeDom.  CodeDom, or Code Document Object Model,  is a feature which lets you generate code and assemblies in a language neutral way.  It’s also extensible, meaning it’s possible to plug in…


New MSIL & Subset CodeDom Provider samples [Peter Drayton]

There’s a fair bit written about using CodeDom, but samples showing how to implement your own provider have been quite thin on the ground. Fortunately Eden Li, a CLR intern this summer, produced a couple of useful CodeDom provider samples now live on the MSDN BCL site: MSIL provider: consumes 1.1-level CodeDom trees and generates…