How to Create an XML Serializer for More than One Type?
- 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?