external library with un-serialized sealed class

david ste posted at 09-May-08 10:50

I have an external library I am using within my project which contains an event class which I display on a databound server control on my page. Currently the event class in the external library is not marked as serializable so if I enable view state on my server control then an error is thrown saying that the event object could not be serialised.

Unfortunately the event class in the library is also marked as sealed so I can not inherit this in to another class and mark the new class as serialized.

Any ideas as to how I can enable serialization for this object?




Click here to sign in and reply. You could earn money via our $500 contest just for being helpful.
  external library with un-serialized sealed class - david ste  09-May-08 10:50 10:50:14 AM
      You need a Serialization Surrogate class. - Peter Bromberg  09-May-08 03:02 3:02:10 PM
          Thank you - david ste  12-May-08 05:54 5:54:26 AM
View Posts