Click here to Skip to main content
15,895,142 members

Response to: Serialization and Deserialization

Revision 3
What I was taught to do and what I have always done is create a DLL project that does the serializing and deserializing and then use this DLL in both your projects.
Sorry I wrote this in a rush if you need more help I will try to explain better.

EDIT:
To be clear you would create a DLL project put all your code to serialize and deserialize in this project and then you will reference this DLL in both of your other projects ( one project to serialize and another to deserialize). So 3 separate projects in total.

Hope this makes sense to you.

EDIT - Adam Harris:
What you need to do is this, and what i think he is trying to say is:

- Create 1 project (Class Library / DLL) that contains your Objects to be Serialized/Deserialized
   - Let's call this CommonObjects
- Create 1 project to serialize your objects that references the CommonObjects library
- Create 1 project to deserialize your objects that references the CommonObjects library


All the objects that you want to serialize/deserialize should live inside of CommonObjects.
Posted 21-Dec-12 11:29am by SS4L84.
Tags: