The documentation (and intellisense) states very clearly that DataTable
implements IListSource
. But then why doesn't DataTable
have a getList()
method, which is (the main) part of the IListView
interface?
Asked
Active
Viewed 1,509 times
2

Baruch
- 20,590
- 28
- 126
- 201
1 Answers
6
DataTable
uses Explicit Interface Implementation to implement IListSource
.
You can still use the method via:
IListSource listSource = (IListSource)dataTable;
IList list = listSource.GetList();

Reed Copsey
- 554,122
- 78
- 1,158
- 1,373