GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  C#
Go To First  |  Previous Question  |  Next Question 
 C#  |  Question 432 of 436    Print  
C# Serializable Keyword
What is the use of serializable keyword in C#?


  
Total Answers and Comments: 3 Last Update: August 07, 2009     Asked by: selvimathi 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: GeekBoy001
 
Marking a class with the key word [Serializable] at the top ensures that the object can be serialized in an XML format primarily for data exchange between disparate systems.  Also, this is required if this object is going to be inherited by other objects which needs to be serialized downstream.

Above answer was rated as good by the following members:
blnrao
December 25, 2008 06:21:08   #1  
GeekBoy001 Member Since: December 2008   Contribution: 1    

RE: C# Serializable Keyword
Marking a class with the key word [Serializable] at the top ensures that the object can be serialized in an XML format primarily for data exchange between disparate systems. Also this is required if this object is going to be inherited by other objects which needs to be serialized downstream.
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
March 26, 2009 00:44:53   #2  
rags_73 Member Since: December 2008   Contribution: 1    

RE: C# Serializable Keyword
Preserving the state of an object is called as serialization and serialization is needed whenever you want communicate across process as well as physical boundaries.
 
Is this answer useful? Yes | No
August 07, 2009 07:20:01   #3  
chintan.desai Member Since: July 2009   Contribution: 8    

RE: C# Serializable Keyword

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.



 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape