On 5 Mar, 22:59, Sarika Agarwal <sar...@gmail.comwrote:
Hi,
What is the primary difference between serialization and encoding in
.NET!
*** Sent via Developersdexhttp://www.developersdex.com***
There are a few, but you're right in that they're sort of related.
First serialization can take an object and persist/transmit it in a
variety of formats, XML and binary for example. Second if that format
is text based you could encode it using a variety of encoders, ASCII
for example. To keep things simple, think of the encoding as
globalisation for text, and serialization as turning an object into a
stream. So you could serialise an object to text and encode it in
ASCII, or serialise it as binary and not worry about the encoding.
Serialisation infers you will deserialize it back into an object.
Encoding will turn the strings in that object back into human readable
strings.
Apologies for the random distribution of z's and s's, I'm in London
kept awake by a storm so my internationalisation is a bit shot :)