<Serialize> what does it really mean???

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • serge calderara

    <Serialize> what does it really mean???

    Dear all,

    I would like toi understand clearly what does that tag
    <Serialiaze> reaaly means and when to use it and how?

    I have seen it in many places

    thanks for your answer
    regards
    serge
  • Michael Lang

    #2
    Re: &lt;Serialize&g t; what does it really mean???

    "serge calderara" <serge.calderar a@maillefer.net > wrote in
    news:103001c381 db$4efa8e10$350 1280a@phx.gbl:
    [color=blue]
    > Dear all,
    >
    > I would like toi understand clearly what does that tag
    > <Serialiaze> reaaly means and when to use it and how?
    >
    > I have seen it in many places
    >
    > thanks for your answer
    > regards
    > serge
    >[/color]

    When something is in a tag like that before a member declaration it is
    called an "attibute".

    Look in the help for "SerializableAt tribute" class.

    "Indicates that a class can be serialized.
    ....
    Apply the SerializableAtt ribute attribute to a type to indicate that
    instances of this type can be serialized. The common language runtime
    throws SerializationEx ception if any type in the graph of objects being
    serialized does not have the SerializableAtt ribute attribute applied.

    Apply the SerializableAtt ribute attribute even if the class also
    implements the ISerializable interface to control the serialization
    process."

    So also take a look at the ISerializable interface, and in general look
    into the topic of serialization.

    --
    Michael Lang, MCSD
    See my .NET open source projects
    http://sourceforge.net/projects/colcodegen (simple code generator)
    http://sourceforge.net/projects/dbobjecter (database app code generator)
    http://sourceforge.net/projects/genadonet ("generic" ADO.NET)

    Comment

    • Chris LaJoie

      #3
      Re: &lt;Serialize&g t; what does it really mean???

      basically, a serialized class can be stored in binary form. so you can save
      the state of your class, stick it in a file, or the registry, or send it
      across a network or whatever you want, and when your program needs it again
      it can just read that binary data and have that class in it's saved state.

      Chris

      "serge calderara" <serge.calderar a@maillefer.net > wrote in message
      news:103001c381 db$4efa8e10$350 1280a@phx.gbl.. .[color=blue]
      > Dear all,
      >
      > I would like toi understand clearly what does that tag
      > <Serialiaze> reaaly means and when to use it and how?
      >
      > I have seen it in many places
      >
      > thanks for your answer
      > regards
      > serge[/color]


      Comment

      Working...