Serialization & encoding

  • Thread starter Thread starter Sarika Agarwal
  • Start date Start date
S

Sarika Agarwal

Hi,

What is the primary difference between serialization and encoding in
..NET!
 
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 :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top