DBC User,
Serialization is the act of being able to take an instance of an object
and save it in its current state to another storage medium. In .NET, this
is always a stream, but since streams can have different backings, the uses
for this mechanism are virtually limitless.
One use is in remoting situations. When you pass parameters to/from a
method that is being executed in an app domain outside of your own,
serialization is used to package the parameters into byte streams that can
be passed to the other app domain.
You can also save the stream to a file on disk, or in a database, and
then deserialize the instance later, continuing to use it.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"DBC User" <db*****@gmail.com> wrote in message
news:11*********************@g10g2000cwb.googlegro ups.com...
Could someone help me understand 'Serializable'?
What is this 'Serializable' why do we need it and how do we use it? Any
link or simple example would be great.