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

Reply via email to