Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reflection to create instance of datasets?

Status
Not open for further replies.

johnfraser

Programmer
Jul 25, 2007
33
US
Hi, I've used reflection in the past for the common need of getting methods from within an assembly an running it.

I have a new situation and reflection searches on google seem to turn up too much of the simple and not enough of what I'm looking for.

Basically I have an assembly that contains many "typed" datasets. I have created an application which outputs the dataset's to excel format for easy population by end users. The problem is on hydrating the dataset and giving it back to them in the "typed" version. Currently the code is working by giving them a generic DataSet....

So basically I have a string available that contains the exact object/type I need to create and pass back. The question is, can reflection give the ability to do this. If so, how?

Any direct help or links to potential similar situations are appreciated.

BTW, not my first post, just switched positions and needed a new account.
 
Perfect examples, it's just been a while since I've used reflection.

Thank you so much for the assistance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top