Check if a datasource is a tree datasource.
Tests for the presence of the three methods that define ITreeDatasource: getRootNodes, getChildren, and hasChildren.
getRootNodes
getChildren
hasChildren
The item type (used for type narrowing).
The datasource to check.
true if datasource implements ITreeDatasource<T>; false otherwise.
true
datasource
ITreeDatasource<T>
false
Check if a datasource is a tree datasource.
Tests for the presence of the three methods that define ITreeDatasource:
getRootNodes,getChildren, andhasChildren.