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
Is it possible to unit test an mvc application without running the controllers in an asp.net process?
Can a view be shared across multiple controllers? If yes, how we can do that?
What is stateless model?
How does servicing work for the .net framework 3.0? If I install the .net framework 3.0, can I get service updates for the .net framework 2.0?
Explain the advantages of dependency injection (di) in asp.net mvc?
What are the components required to create a route in ASP.Net MVC?
How to use Jquery Plugins in ASP.Net MVC validation?
mention what is the key advantage of using entity framework or ef?
What is razor code?
mention what are the various methods provided by the dataset object to generate xml?
Is it possible to create a custom filter?
How do I install .net framework?
I want ask from plz smaple example code for Biztalkk server
What does mvvm mean?
When will the .net framework 3.0 be released?