.NET Framework Bookmark and Share   
 index > .NET Base Class Library > Can you convert a string to a type?
 

Can you convert a string to a type?

Hi

I am trying to create a web user control that will take a parameter that is a type name that I can use to build a dropdown list of the property names available in the type.

This may not be the best way to do things so I am open to ideas.

Thanks.

DBrown
System.Type.GetType(string name);
Greg Beech
System.Type.GetType(string name);
Greg Beech

Thanks Greg!

Boy do I feel sheepish. I thought I had tried that but I did not fully qualify it with System. I must have been getting Object or something else. Thanks again for the help.

DBrown

You can use google to search for other answers

Custom Search

More Threads

• Create objects from a string
• Problem activating VisualStudio.NET
• Enumerating the PerformanceCounterCategory class
• How to create dynamic array
• Problem using DirectorySearcher class : target of an invocation.System.Runtime.InteropServices.COMException...
• user.config and Upgrading Applications
• Help needed with cookies and WebRequest
• Unable to expand child properties in PropertyGrid bound to Properties.Settings
• FileInfo.Length more that it content
• accessing a website programmatically