Interface and class

J

jodleren

Hi all

I am working on a part, which should be a com interface in my app.
Previous in Delphi we had this:

TBoxInterface = class(TAutoObject, IBoxInterface)

Where TAutoObject is a basic Delphi class for this, and our interface.

How do I do that in C#?
And can I originate from 2 classes/interfaces at once?

WBR
Sonnich
 
A

Arne Vajhøj

I am working on a part, which should be a com interface in my app.
Previous in Delphi we had this:

TBoxInterface = class(TAutoObject, IBoxInterface)

Where TAutoObject is a basic Delphi class for this, and our interface.

How do I do that in C#?
And can I originate from 2 classes/interfaces at once?

Try:

public class BoxInterface : AutoObject, IBoxInterface
{
}

Arne
 

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