Link to home
Start Free TrialLog in
Avatar of ew0kian
ew0kian

asked on

serialization?

what is serialization? i've heard this term many times but i have no idea what it is :)
Avatar of smegghead
smegghead
Flag of United Kingdom of Great Britain and Northern Ireland image

It is the process of converting an object (an instance of a class) into a stream of bytes which can be passed over a network, and re-assembled at the other end.. or written to a file for later retrieval.

ASKER CERTIFIED SOLUTION
Avatar of _TAD_
_TAD_

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of aavakian
aavakian

How can you serialize an object into memory so that you can send it across the network?  i can't find any examples of that for C#.
By Serializing an object you make it substantially smaller.  And simply by serializing it, you can convert it to a byte stream.  That 's what serialization is/does.

Here is a web site that describes serialization.  This link pertains to Java explicitly, but the same holds true for C# and .Net

http://java.sun.com/docs/books/tutorial/essential/io/serialization.html