|
-
December 22nd, 2007, 09:11 AM
#1
Find class by string
Hey Guys,
I have a serialized object stored in my DB, and it can be one of 3 classes (all of which implement the same interface). When I get the XML back from the DB, I also get a string containing the name of the class.
I need to get the class from that string, such that I can use:
new XmlSerializer(typeof(CLASS_NAME_HERE));
I know in Java (my main language) I can ask the class loader for a class for a given string.
Thoughts?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|