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 |
How do I use partial view?
what is the use of final method
How do I install .net framework?
About namespaces ?
What is attribute routing in mvc?
Why to use html.partial in mvc?
What is Value type and reference type in .Net
Does .NET Framework support SAX?
What are Action Filters in ASP.NET MVC and its use?
Is .net core replacing .net framework?
What are the different authentication modes in the .NET environment?
What is difference between razor and web form engine?