Hi, [NonSerialized] has no effect in ISerializable types as fields of ISerializable types are not serialized. You didn't post a lof of your code that is maked with .... that is trying to serialize one or more objects of type Gdk.Pixpuf.
Kornél ----- Original Message ----- From: "einKI.ml" <[EMAIL PROTECTED]> To: "mono-list" <[email protected]> Sent: Tuesday, August 22, 2006 12:14 AM Subject: [Mono-list] ISerializable > Hi > > I tried to serialize a class with the ISerializable interface bacause I > one member of the class is a Gdk.Pixbuf which is not serializable by > default. > > [Serializable] > public class ContentImage : ISerializable > { > [NonSerialized] > Gdk.Pixpuf image; > > protected SerializablePixbuf(SerializationInfo info, > StreamingContext context) > { > .... > } > > public void GetObjectData(SerializationInfo info, > StreamingContext context) > { > .... > } > } > > But I get a exception that Gdk.Pixbuf is not marked with the > Serializable Attribute. > But it should not be serialized because I should have the full > control with the ISerializable interface and further more it > is marked as NonSerialized. > > Any solution is appreciated > thx > > _______________________________________________ > Mono-list maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/mono-list _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
