This documentation is archived and is not being maintained.

CodeGenerator Class

Provides an example implementation of the ICodeGenerator interface. This class is abstract.

For a list of all members of this type, see CodeGenerator Members.


[Visual Basic]
MustInherit Public Class CodeGenerator
   Implements ICodeGenerator
public abstract class CodeGenerator : ICodeGenerator
public __gc __abstract class CodeGenerator : public ICodeGenerator
public abstract class CodeGenerator implements ICodeGenerator

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


This is a useful base class for code generators to derive from. Code generators are capable of rendering source code in a specific language according to the structure of a Code Document Object Model (CodeDOM) graph. This class provides many functions and methods to generate specific types of code from a CodeDOM graph.


Namespace: System.CodeDom.Compiler

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System (in System.dll)

See Also

CodeGenerator Members | System.CodeDom.Compiler Namespace | ICodeGenerator | CodeCompiler