How to Create an XML Serializer for More than One Type?
Posted
by John
on Stack Overflow
See other posts from Stack Overflow
or by John
Published on 2010-04-02T19:09:43Z
Indexed on
2010/04/02
19:23 UTC
Read the original article
Hit count: 123
c#
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?
© Stack Overflow or respective owner