I think it's more difficult to ask than answering the question.
I wanna ask my question with an example:
You know that we can bind an object to a DataSource, and that object could be of any type. So suppose I've bound an object of type "MyClass" to DataSource of a DataSet.
Now I send this dataset as a parameter to another class in another DLL, and in this DLL file I want to create a List<> of type of "MyClass".
As I have not access to "MyClass" type i can use this code to get the type of DataSource:
but I can't use the code like the following to create a List of type of "MyClass":
What should I do in this situation?