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 |
What is tempdata?
How can I return string result from action in asp.net mvc?
What is MVVM design pattern?
Difference between Dispose and Finalize method
About DTS package ?
1 Answers Accenture, Grafotech,
What is the difference between windows vista and .net framework 3.0 ?
Is it possible to create a custom filter?
IS MS.Net platform independent or dependent?
19 Answers Infosys, Ksb, Satyam,
Explain something about model, view and controllers in asp.net mvc?
What is entity graph? : Entity framework
What are the new features 3.5 framework against with the tool?
Is .net core replacing .net framework?