creating a type from a string

D

Dan Holmes

If i have this value in a string "System.Int32", how can i get that into
a variable with the type of Type?

string s = "System.Int32";

Type t = //do something here

so that t.ToString() == s is true

dan
 

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