My goal is to generate something like

class Employee :
  Person,
  ICustomInterface
{
...
}


So far I get the class from
 CSharpCodeProvider CodeProvider = new CSharpCodeProvider();
 ICodeGenerator Generator = CodeProvider.CreateGenerator();
 CodeNameSpace Namespace = new CodeNamespace("TestNameSpace");
 CodeTypeDeclaration TypeDeclaration = new CodeTypeDeclaration("Employee");
 TypeDeclaration.IsClass = true;
 Namespace.Types.Add(TypeDeclaration);
 ...
 Generator.GenerateCodeFromNamespace(Namespace, TextWriter, Options);


How do I get the base class (Person) and implemented interface
(ICustomInterface) generated?

Thanks in advance.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to