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 additional features in 1.1 rather than 1.0

1 Answers  


What is partialview in asp.net mvc?

0 Answers  


Asp.net mvc application, makes use of settings at 2 places for routing to work correctly. What are these 2 places?

0 Answers  


Name a few different return types of a controller action method?

0 Answers  


What is edm (entity data model)? : Entity framework

0 Answers  


I have interview in accenture.I cleared 1st round in techniqual.I have interview with project lead.pls help me.

2 Answers   Accenture,


Can I redirect tracing to a file

1 Answers  


How route table is created in ASP.NET MVC?

0 Answers   NA,


Is mvc 4 supporting windows azure sdk (software development kit) ?

0 Answers  


Can I customise the serialization process

1 Answers  


What is namespaces

1 Answers  


How does �side by side� work for the .net framework 3.0?

0 Answers  


Categories