Daily Archives: Saturday, August 7, 2010

Using Reflection to serialize DTO’s

Posted by & filed under code.

Suppose that you have a DTO (data transfer object) that you want to convert into a parameter array to be saved to file or sent over the web. You could serialize it and convert it to XML or JSON. But maybe you want to send it in an HTTP POST or GET and you don’t […]