imak
imak

Reputation: 6699

c# BindingList problem

I have interface defs like below.

public interface IProvider  
{  

}


public interface IProviderList : BindingList<IProvider>  
{

}

Not sure whygetting compilation error
Type 'BindingList<...>' in interface list is not an interface

Any ideas?

Upvotes: 0

Views: 752

Answers (2)

JYL
JYL

Reputation: 8319

BindingList<T> is a class. An interface (your IProviderList) can not inherit from a class.

Upvotes: 1

user197015
user197015

Reputation:

BindingList<T> is not an interface, it's a class. IBindingList is an interface. Perhaps you meant to use IBindingList?

Upvotes: 1

Related Questions