What is CrazyEngico.com (CE)?

CrazyEngico (CE) is a one-stop solution for interview questions and answers, domain knowledge, e-learning, tutorials, articles and many more learning material.
e-learning - Intelligent e-learning tutorials and articles
Domain Knowledge Learn about various business domains/verticals such as Banking, Financial, Insurance, Healthcare and many more...
Interview Questions and Answers - Post your questions and answers. 1000+ database of ready questions and answers available to prepare for an interview.
Tutorials - 300+ video tutorials from beginner to expert level.
Articles - 300+ technical articles to understand concepts.
Forum - A technical forum to post your queries/responses.

Search Questions

Interview Questions/Answers

Ads
Question
Interview Q & A >> C# >> What is the use of serializable keyword in C#?

<< Previous Question Navigator Next >>

0        0
What is the use of serializable keyword in C#? (Views: 2106)


Answers


0        0

The simplest way to make your classes eligible for serialization is to use the Serializable attribute. By decorating your class with this attribute as shown below, your classes are immediately made serializable:

[Serializable]
public class Player
{
[...]
}


Serialization is the process of taking an object and convert it to a format that can be transmitted over the network or save in database or store in the file.

Objects may be serialized in three formats: Binary Soap and XML.

Remoting and Web Services depend heavily on Serialization and De-serialization.

Submitted By: Serialization | Created On: 4/18/2012 10:38:57 PM

2        0

To serialize an object.for example if you want to implment SQL server or state server
 Session management your data needs to be serialized (conveted to binary form).

Serialization is the process of converting .net object to  binary or xml or JSON format


Submitted By: Chandrasekhar | Created On: 5/25/2012 4:49:14 PM

0        0

Serializable is a concept of converting your user define type i.e. class into bytes. Serializing object into bytes help for ease in transporting data within network or machines. .Net also provides support to desializing

We can do Serializing in following ways:
i. XmlSerializer.
ii. Soap Formatter and Binary formatter.



Submitted By: dk | Created On: 6/20/2012 4:17:34 AM


Post your Answer
Your answer will be first reviewed by our administrator before it appears on the site.

Your Answer:


 
Display Name:





By clicking on Submit button you agree to the Terms of Service agreement.




Copyright © 2018 CrazyEngico.com. All rights reserved.
CrazyEngico.com is not responsible for the content and CrazyEngico.com does not evaluate or guarantee the accuracy of any CrazyEngico.com content.
Please read our terms of service agreement before using this site.

feedback