The best way to store class instances to a file/database
问题 What is the best way to store instances of a class to file/database? We have a base class called Command and loads of derived classes. Users create instances of these classes by adding commands to a graphical designer where they can configure them. (Set the properties). We then need a way to store these "commands" to a file without losing any information. One idea was to use db4o, but the GPL license is not acceptable for this project. Any suggestions or code samples? Update: (In order to "de