[英]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 接口列表中的类型'BindingList <...>'不是接口
Any ideas? 有任何想法吗?
BindingList<T>
is not an interface, it's a class. BindingList<T>
不是接口,而是一个类。 IBindingList
is an interface. IBindingList
是一个接口。 Perhaps you meant to use IBindingList
? 也许您打算使用
IBindingList
?
BindingList<T>
is a class. BindingList<T>
是一个类。 An interface (your IProviderList
) can not inherit from a class. 接口(您的
IProviderList
)不能从类继承。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.