create generic List with dynamic type.

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi,

is there a way to create a List-Objekt of an runtime type? I would like to do something like this:

Customer c=new Customer;
Type t=c.GetType();

List<t> list=new List<t>;

Is there a way to do this? Maybe with the new Expression-Objects?<hr size="1" align="left" width="25% VB.NET & C#.NET

View the full article
 
Back
Top