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 the difference between partial and renderpartial?
What is mvc entity framework?
What is edm in entity framework?
Which is the root namespace for fundamental types in .net framework?
Is it possible to combine asp.net webforms and asp.mvc and develop a single web application?
What is object service? : Entity framework
Have you designed any components?
When was .NET announced
What is definingquery in entity framework? : Entity framework
Explain peek method in tempdata in asp.net mvc?
Explain the role of assembly in the .net framework.
Can we free memory explicitly without waiting for garbage collector to free the memory in .net compact framework?