[IronPython] Marking an IronPython class as serializable

Jimmy Schementi Jimmy.Schementi at microsoft.com
Wed Apr 14 10:01:16 CEST 2010

Take a look at the clrtype sample; it shows how to use .NET attributes on python classes, such as Serializable.



On Apr 13, 2010, at 5:42 AM, "Pablo Dalmazzo" <pablodalma93 at hotmail.com<mailto:pablodalma93 at hotmail.com>> wrote:


I need to mark an IronPython class as serializable . Is it possible to do this?
Now I know this could be a bad idea for performance reasons and other reasons perhaps, but I want to store a custom class object in the asp.net<http://asp.net> webforms ViewState, that way when the page is closed the object disappears, and asp.net<http://asp.net> tells me it can't be done because the object isnt marked as serializable. I know it can be a bad idea but I would like to give it a try and see how it turns out to work.

Greetings, Pablo
Con Hotmail hay una forma muy fácil de encontrar tus emails: organizalos por carpetas. Ver más<http://www.descubrewindowslive.com/hotmail/organizacion.asp>
Users mailing list
Users at lists.ironpython.com<mailto:Users at lists.ironpython.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20100414/57d8a57b/attachment.html>

More information about the Ironpython-users mailing list