Trinominal
June 9th, 2009, 05:48 AM
Hi,
I want to serialize an object model into a binary file.
I saw that it can be done using the BinaryFormatter class, but then I need the objects in my object model to inherit the ISerializable interface and implement it, and I also afraid that because this is more or less a generic method of serializing, that there might be an impact on the performance.
1. Are you aware of any performance issues with this method ?
2. Are there any other methods of serializing objects into binary files, which are custom (i.e., I write the persistence code myself, without inherit the ISerializable interface) ?
Regards
I want to serialize an object model into a binary file.
I saw that it can be done using the BinaryFormatter class, but then I need the objects in my object model to inherit the ISerializable interface and implement it, and I also afraid that because this is more or less a generic method of serializing, that there might be an impact on the performance.
1. Are you aware of any performance issues with this method ?
2. Are there any other methods of serializing objects into binary files, which are custom (i.e., I write the persistence code myself, without inherit the ISerializable interface) ?
Regards