Friday, April 15, 2011

Given the names of the types as strings, how would I construct a generic using reflection?

Presuming I have the strings "List" and "Socket," how would I go about creating a List<Socket>?

The answer I need will work just as well for Queue and XmlNodeList, not to mention MyCustomGeneric with MyCustomClass.

From stackoverflow

0 comments:

Post a Comment