IQueryable do the with a variable

Aug 4 2009 10:41 AM

Is it possible to use any variable instead of the T.
I've create a query depending on a type chosen from a Combobox.
So is it possible to create a variable and then use it like this:
??? T = chosen_entity.GetType();
IQueryable<T> test = ...
 
 
 
 

Answers (2)