How to make dynamic object?
- by John
I am using the XmlSerializer like this,
XmlSerializer xs = new XmlSerializer(typeof(myType));
Now I have 5 different "myType". How do I pass the specific type dynamically so I don't have to repeat the same code 5 times?
Thanks