Object Serialization

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rodrigo Defavari

    Object Serialization

    Hello People !!

    I'm having to work with serialization of objects (to transform the
    properties in XML), but I am with the following problem. . .

    It is only possible make serialization in objects marked as
    "serializab le ", and I am working with objects that inherit of
    System.Windows. forms that are not marked as serializable. Example: Button,
    Textbox, CheckBox.

    To exemplify better: I am needing to save in a XML file all the
    properties of a control as button, textbox, checkbox, etc..

    Does anybody have some idea?


    Thanks a lot !!!

    --



    Rodrigo Defavari
    Developer
    rodrigo.defavar i@gmail.com


  • =?Utf-8?B?S2VycnkgTW9vcm1hbg==?=

    #2
    RE: Object Serialization

    Rodrigo,

    It sounds like you are trying to use xml serialization. If that is the case,
    xml serialization does not require the object to be serialized to be marked
    as serializable.

    Kerry Moorman


    "Rodrigo Defavari" wrote:
    Hello People !!
    >
    I'm having to work with serialization of objects (to transform the
    properties in XML), but I am with the following problem. . .
    >
    It is only possible make serialization in objects marked as
    "serializab le ", and I am working with objects that inherit of
    System.Windows. forms that are not marked as serializable. Example: Button,
    Textbox, CheckBox.
    >
    To exemplify better: I am needing to save in a XML file all the
    properties of a control as button, textbox, checkbox, etc..
    >
    Does anybody have some idea?
    >
    >
    Thanks a lot !!!
    >
    --
    >
    >
    >
    Rodrigo Defavari
    Developer
    rodrigo.defavar i@gmail.com
    >
    >
    >

    Comment

    Working...