M
mdb
I have a class (very simple int type data, as shown below) that I have
serialized to disk. In my next version of the program, I have added some
variables to that class. I'm expecting that this will break the
serialization when I try to load the object from disk.
I know there is something in .NET 2.0 to handle this, but how can I do it
with .NET 1.1? Some sample code would be much appreciated...
// The old version
class Data
{
int x;
int y;
}
// The new version
class Data
{
int x;
int y;
int z;
}
serialized to disk. In my next version of the program, I have added some
variables to that class. I'm expecting that this will break the
serialization when I try to load the object from disk.
I know there is something in .NET 2.0 to handle this, but how can I do it
with .NET 1.1? Some sample code would be much appreciated...
// The old version
class Data
{
int x;
int y;
}
// The new version
class Data
{
int x;
int y;
int z;
}