What is Encoding and Serialization in .Net?

Questions by wenkat40

Showing Answers 1 - 15 of 15 Answers

machud

  • Apr 10th, 2011
 

Encoding  standards connects byte values to characters. ASCII is one of the oldest and widely used encoding with limited support characters for non-English languages. Multi language support is provided by unicode encoding standards. NET framework uses UTF-16 encoding by default . NET framwork handles this automatically but some situations like working with othe systems like unix, other languages ,emails etc you may have to code to use specific encodings. System.Text namespace includes classes for encoding and decoding. Use System.Text.Encoding.GetEncoding method to return specific encoding.

Serialization is the process of converting objects (instances of classes,variables, structures etc) into binary , SOAP or XML format for easy transfer across the wire between applications so that the same object can be recreated (deserialization). Serialization play vital role in remoting, Webservice etc .
System.Runtime.Serialization namespace contains all the classes for this purpose. Use XMLSerialization when you need to exchange object that may be some other platform.

ffiv77

  • Feb 20th, 2012
 

Serialization is the process of converting an object into a stream of bytes in order to persist it to memory, a database, or a file. Its main purpose is to save the state of an object in order to be able to recreate it when needed. The reverse process is called deserialization.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions