convert a string to type for passing into a generic

S

Simon

I'm pulling data from an xml file, one field of which is the datatype
for passing into a generic class. The problem is how to get that
string from xml into a valid argument for CustomCollection<T>.
Anyone know how to do this?
Thanks
Simon
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

Take a look at either AppDomain.CreateInstance or Assembly.CreateInstance
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top