开发者

c# BindingList problem

I have interface defs like below.

public interface IProvider  
{  

}


public interface IPro开发者_StackOverflow中文版viderList : BindingList<IProvider>  
{

}

Not sure whygetting compilation error

Type 'BindingList<...>' in interface list is not an interface

Any ideas?


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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜