How to use CodeDom to create a class that derives from other class

G

Guest

Hi,

I want to use CodeDome to create a class that derives from
MarshalByRefObject. Currently the only thing I can do is:

oClass=new CodeTypeDeclaration("MyClass");
oClass.IsClass = true;
oClass.Attributes = MemberAttributes.Public;

How to let my class derive from
MarshalByRefObject?

Thanks in advance!!!
Cindy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top