Answer Posted / 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 View All Answers
Can we add constraints to the route? If yes, explain how we can do it?
How can I return string result from action in asp.net mvc?
What is storage model? : Entity framework
mention what is csdl, ssdl and msl sections in an edmx file?
Mention some action filters which are used regularly in ASP.Net MVC?
Are there any parts of the .net framework 3.0 that only work on windows vista?
Explain the advantage of packaging over xcopy in .net?
How can you return string result from Action in ASP.Net MVC?
what is client wins and store wins mode in entity framework concurrency?
Which .net framework is installed?
I want ask from plz smaple example code for Biztalkk server
Explain representational state transfer (rest) in detail?
What are Scaffold templates in ASP.Net MVC?
Explain the types of Scaffoldings.
What is layout in mvc?