Hi Hauke,
ListViewItem performs its own serialization by implementing the
ISerializable interface (I looked at the class in the 2.0 framework). For
this reason the class may just omit the Tag property during serialization
since Tag is System.Object and usually holds very specific information
within a particular context that will probably be lost after
deserialization. You could create a ListViewItemWrapper class that
implements ISerializable as well, forwarding calls for serialization and
deserialization to the underlying ListViewItem instance and add as many
custom serialization properties as you'd like to the wrapper class. This is
a better approach than using Tag for serialization.
HTH
"hauke" <ei************@gmail.comwrote in message
news:11**********************@35g2000cwc.googlegro ups.com...
Hi,
I've written a small piece of code that serializes my ListView with all
it's ListViewItems, but for some reason it doesn't seem to serialize
the ListViewItem.Tag (custom IDictionary class) properties.
Anyone know why this could be the case?
Thanks in advance,
Eirik