2

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?

Baruch
  • 20,590
  • 28
  • 126
  • 201

1 Answers1

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