Hallo,
I need to instantiate a generic list, but the type is going to be known only on runtime. Something like:
Type T = GetTheTypeUsingReflection();
List<T> myList = new List<T>();
But this code does not work: "the type 'T' could not be found"
Any suggestion?
Thanks
I need to instantiate a generic list, but the type is going to be known only on runtime. Something like:
Type T = GetTheTypeUsingReflection();
List<T> myList = new List<T>();
But this code does not work: "the type 'T' could not be found"
Any suggestion?
Thanks