How to make dynamic object?

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:13 UTC
Read the original article Hit count: 273

Filed under:

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

© Stack Overflow or respective owner

Related posts about c#