Re: Why Serialization

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I can understand that you can do it, but why would you need to do it? You
said that you can store a control in the state it is, but for the array
example, why can't you just pass they array as an object?

Thanks,
Henry

"Cor Ligthert [MVP]" <notmyfirstname@xxxxxxxxx> wrote in message
news:%23UoJyI%23vGHA.3372@xxxxxxxxxxxxxxxxxxxxxxx
Henry,

For a lot of situations, one of them can be that you want to store a
control in the state as it is, but you can also use it to sent an object
in the state it is pver the line without XML serialization.

It is also used to make a deep copy of objects by the way, because there
are only few classes who have methods for that. (The dataset and the
datatable have those by instance).

It is simple to do, see here a sample of that.

http://www.vb-tips.com/dbpages.aspx?ID=7ffd296f-9e81-47e6-88dc-61641f5c8d9d

I agree that this is not the only method, but a lot of people like to do
it this way.

I hope that this helps sofar,

Cor

"Henry Jones" <henryjones@xxxxxxxx> schreef in bericht
news:OIPuND%23vGHA.1296@xxxxxxxxxxxxxxxxxxxxxxx
I read a bit on Serialization and came up with the following definition:

The System.Runtime.Serialization namespace contains classes that can be
used for serializing and deserializing objects. Serialization is the
process of converting an object or a graph of objects into a linear
sequence of bytes for either storage or transmission to another location.
Deserialization is the process of taking in stored information and
recreating objects from it.



My question is why would someone want to do this? In doing some more
investigation, I understand you can an array list, or a TreeView. Can't
you just create the same thing in a new class or on another form by doing
a new query? Is it such a big deal?



Please help me figure out what I am missing by all this.



Thanks






.



Relevant Pages

  • Re: how to call a subvi to run in background?
    ... i am running two instances of the same dynamometer control application ... so i predfine the 2d array and then use an integer to store ... array size and perform the file access, i need to make the array ...
    (comp.lang.labview)
  • Re: Units of Measure in Edit Controls
    ... >store it as the format as the dialog init'd, ... I'd probably define a structure that contains the control ID and an ... enumerated value for the measurement type. ... array of these and an array of values for each control so you can loop ...
    (microsoft.public.vc.mfc)
  • Re: Beziers 1D Evaluators
    ... What is the purpose of this data structure definition? ... It is an array of ... Anyways i don't see how you store your Controlpoints into that. ... No this rather means you got 3 bytes of user data between every control point. ...
    (comp.graphics.api.opengl)
  • Re: Why Serialization
    ... one of them can be that you want to store a control ... state it is pver the line without XML serialization. ... used for serializing and deserializing objects. ...
    (microsoft.public.dotnet.general)
  • Re: signature control to byte array and back
    ... okay thats a problem with the control but my question remains: ... how do i convert a bitmap to a byte array so i can store it in a ...
    (microsoft.public.dotnet.framework.compactframework)