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 interfaceAny 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.
精彩评论