By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,815 Members | 1,143 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,815 IT Pros & Developers. It's quick & easy.

Serialization of collection

P: n/a
I am confused on serializtion.

I have a class called picture. It has a bitmap member and several others.

I have a collection class called pictures which inherits from
collectionbase.

How should I best serialize them? They are part of a larger object graph of
course, but so far I am having trouble and have tried various things.

The thing is, that it seems to be so complex and such a black box, that when
something goes wrong, I have no idea what to do to fix it.

TIA,

Shane
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
After much research--causing my project to be in limbo for a while--and
after reading many articles and all, I decided that serialization is great
for a temporary short-term thing, but for long term persistence appears
half-baked and problem ridden. For this reason, I just implemented my own
"serialization" Interface in each object and pass them a binarywriter or
binaryreader, each object saves its version and then if changes occur I can
handle it there.

Since I wrote it, it is no longer a black box.

This is my thinking with many of the nice features that MS puts out. There
is a lot of good stuff but too much control has to be given up to us it and
you don't know what to do if it breaks.

Thanks anyhow.

Shane
"Shane Story" <no****@nothanks.com> wrote in message
news:en**************@TK2MSFTNGP12.phx.gbl...
I am confused on serializtion.

I have a class called picture. It has a bitmap member and several others.

I have a collection class called pictures which inherits from
collectionbase.

How should I best serialize them? They are part of a larger object graph
of course, but so far I am having trouble and have tried various things.

The thing is, that it seems to be so complex and such a black box, that
when something goes wrong, I have no idea what to do to fix it.

TIA,

Shane

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.