I need to create DTO objects which holds simple properties and needs to implement the following functionality:
Programming these function is each DTO over and over again would be very tedious and error prone I think so I though about alternatives.
What is the best/simplest common way to accomplish such a task? How Can I determine which one to chose or are there alternatives?
You could load and save from XML using System.Xml.Serialization.XmlSerializer
and the Deserialize
and Serialize
methods.
Cloning can be performed by AutoMapper.