Can I customise the serialization process



Can I customise the serialization process..

Answer / kirti

Yes. XmlSerializer supports a range of attributes that can be used to configure serialization for a particular class. For example, a field or property can be marked with the [XmlIgnore] attribute to exclude it from serialization. Another example is the [XmlElement]

attribute, which can be used to specify the XML element name to be used for a particular property or field.

Serialization via SoapFormatter/BinaryFormatter can also be controlled to some extent by attributes. For example, the [NonSerialized] attribute is the equivalent of XmlSerializer's [XmlIgnore] attribute. Ultimate control of the serialization process can be acheived by implementing the the ISerializable interface on the class whose instances are to be serialized.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net Framework Interview Questions

What is the difference between structures and enumeration ?

1 Answers  


List the new features added in .net framework 4.0.

0 Answers  


Does .NET Framework support SAX?

0 Answers   Wipro,


What is viewbag?

0 Answers  


mention what is the key advantage of using entity framework or ef?

0 Answers   Microsoft,






I'm anfinal yr. engg. student with knowledge of .net. I want to refurnish my knowledge for interview purpose. Which institute is good....I am confused among Peers, Naresh it, Deccansoft...Plz help me to select the right institute.....

9 Answers  


will this code works fine? or will it gives error? Object obj=5; int i=6; i=i+obj;

9 Answers   Kanbay,


creating crystal reports in asp.net & vb.net

1 Answers  


will there be any issues adding a table without primary keys to a data model?

0 Answers   Microsoft,


What does a viewmodel do?

0 Answers  


What is MSIL, IL, CTS?

13 Answers  


How the framework differentiate between 2 version dlls? eg Version 2.0 and 2.1 dlls are there. both are referred in the code.but we are using only name of that dll not the version number. in run time how the framework know which dll has to be referred?

1 Answers   Deloitte,


Categories