Question base class for interfaces

mrmiles

New member
Joined
May 6, 2010
Messages
2
Programming Experience
5-10
Hi,

I want to define a variable that is a collection of interfaces - it could be any interface that is defined for use in my app.

e.g. Dim x as New List(Of InterfaceBase)

Is there a base type for all interfaces that I can use for InterfaceBase?

Thanks,

Miles
 
The only base type for interfaces is Object, it is for example not possible to define a generics type list constraint as interfaces only, but interfaces supports inheritance so you can define your own base interface type.
 
Back
Top