【发布时间】:2014-03-01 15:46:54
【问题描述】:
BindingList<T> 实现IBindingList。 IBindingList 上的方法之一是
void ApplySort(PropertyDescriptor property, ListSortDirection direction);
但是BindingList<T> 没有实现这个方法。相反,它实现了
protected virtual void ApplySortCore(PropertyDescriptor prop, ListSortDirection direction);
显然ApplySortCore 有一个不同的名称并且不公开,所以我看不出它如何满足IBindingList 接口的要求,但这是最接近IBindingList 实际要求的东西。
那么这个类怎么可能不完全实现它的接口呢?
【问题讨论】:
-
您从哪里获得此信息? msdn doc 将其列在显式接口实现下。
-
@LorentzVedeler 我现在看到了。我刚刚在视觉工作室打 F12。但是我去了文档,现在我看到它已经明确实现了。您只是无法从击中 F12 中看出这一点。谢谢。