i need to create a List<T> type at runtime: i have a string that represents the type of a single item in the list (T), and an array of object.
My question is: how i can obtain the List<T>?
I hope I explained myself 🙂
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First of all, are you sure that you want to do it this way? Smells like a design flaw.
Here is an example of how to do it: