Home All Groups Group Topic Archive Search About

convert a string to type for passing into a generic

Author
10 Mar 2006 7:59 PM
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

Author
10 Mar 2006 8:16 PM
Ignacio Machin ( .NET/ C# MVP )
Hi,

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


--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


Show quoteHide quote
"Simon" <boliva***@gmail.com> wrote in message
news:1142020781.793668.299870@u72g2000cwu.googlegroups.com...
> 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
>

Bookmark and Share