The documentation (and intellisense) states very clearly that DataTable implements IListSource. But then why doesn't DataTable have a getList()开发者_JS百科 method, which is (the main) part of the IListView interface?
DataTable uses Explicit Interface Implementation to implement IListSource.
You can still use the method via:
IListSource listSource = (IListSource)dataTable;
IList list = listSource.GetList();
加载中,请稍侯......
精彩评论