BindingList<T>
implements IBindingList
。一對IBindingList
方法是爲什麼BindingList <T>不得不完全實現其接口?
void ApplySort(PropertyDescriptor property, ListSortDirection direction);
但BindingList<T>
未實現此方法。相反,它實現了
protected virtual void ApplySortCore(PropertyDescriptor prop, ListSortDirection direction);
顯然ApplySortCore
有不同的名稱和不公開的,所以我看不出它如何能滿足IBindingList
接口的要求,然而,這是最接近什麼IBindingList
的實際調用。
那麼這個類怎麼可能沒有完全實現它的接口呢?
你從哪裏得到這些信息? MSDN文檔在明確的接口實現下列出它。 –
http://msdn.microsoft.com/en-us/library/bb358213(v=vs.110).aspx –
@LorentzVedeler我現在看到了。我只是在視覺工作室打F12。但我去了文檔,我現在看到它明確實施。你無法通過點擊F12來判斷。謝謝。 – BVernon