[Gtk-sharp-list] Serializable TreeStore

Duncan Mak duncan@ximian.com
31 Jul 2003 16:48:32 -0400


On Thu, 2003-07-31 at 16:40, John Luke wrote:
> So should these (and others) be marked [Serializable], and if so how?
> (through .custom files or a metadata rule in the generator)

On top of the SerializableAttribute, there is also the ISerializable
interface. To implement this interface, you need to add two methods:

1) a constructor that takes a SerializationInfo and a StreamingContext.

2) a GetObjectData method.

the constructor is used for deserialization and GetObjectData for
serialization. I might be able to implement them this afternoon.

Duncan.