Home All Groups Group Topic Archive Search About

how to retrieve a "Type" for a type expressed in string

Author
5 May 2006 9:33 PM
Benny
String.GetType().FullName == "System.String".

Given the string "System.String", how can I get an instance of Type for
System.String?  Thanks.

Author
5 May 2006 9:45 PM
Göran Andersson
Type.GetType("System.String")

Benny wrote:
Show quote
> String.GetType().FullName == "System.String".
>
> Given the string "System.String", how can I get an instance of Type for
> System.String?  Thanks.
Author
5 May 2006 9:54 PM
Benny
Thank you!

Show quote
"Göran Andersson" wrote:

> Type.GetType("System.String")
>
> Benny wrote:
> > String.GetType().FullName == "System.String".
> >
> > Given the string "System.String", how can I get an instance of Type for
> > System.String?  Thanks.
>

AddThis Social Bookmark Button