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 managed and unmanaged code?

12 Answers   IBM,


sql related question (outer join, left, right etc) array vs hashtable CRL sqldatareader vs dataset what is WPF, WCF, compare to WinForms Webservices Asp.net MVC vs WebForms?

0 Answers   Avanade,


What is .net framwork? what is web application? what is CLR? How does work CLR & wht is work of CLR? What is compile? wht is thread? what does use in .net?

4 Answers   IBM, NIIT,


Hello frnds, Actually i am plannig to put fake Xperince letter is it good or not, and please suggest me from where we take it.

1 Answers  


Explain .net Framework?

1 Answers  






What is the difference between the value-type variables and reference-type variables in terms of garbage collection ?

1 Answers  


What is .net architecture and framework?

0 Answers  


What are child actions in ASP.Net MVC?

0 Answers  


What is global assembly cache

2 Answers   BirlaSoft,


What is Value type and reference type in .Net

1 Answers  


What's the .NET class that allows the retrieval of a data element using a unique key

1 Answers  


What are the 3 segments of the default route, that is present in an ASP.NET MVC application?

0 Answers   NA,


Categories