Is it possible to check if an object (for instance a DataGridView.DataSource) is a List(Of T) without specifying the T?
For example, I know that I can do:
If TypeOf(DataGridview.DataSource) Is List(Of Order) Then
...
End If
However, I do not want to check for each possibility (there are hundreds). I have code already to do the dynamic sorting based on column name (which, per standards, will always map to a property name within the List(Of T)), but need to check that the DataSource is a List and not, say, a DataTable, first.