Does anybody have any idea whatthe correct syntax is to get the CodeDom to generate the code to call the constructor of a base class and pass down the parameters Basically to get it to generate something like this:public MyClass(string var1, string var2) : base(var1, var2)
{}
Simon

Code generation with CodeDom
cfspc
From the doc for CodeConstructor in MSDN:
CodeConstructor can be used to represent a declaration of an instance constructor for a type. Use CodeTypeConstructor to declare a static constructor for a type.
If the constructor calls a base class constructor, set the constructor arguments for the base class constructor in the BaseConstructorArgs property. If the constructor overloads another constuctor for the type, set the constructor arguments to pass to the overloaded type constructor in the ChainedConstructorArgs property.