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 meaning of unobtrusive javascript? Explain us by any practical example.
When was the first version of .NET released
What are Non Action methods in ASP.Net MVC?
I want ask from plz smaple example code for Biztalkk server
Can you declare an override method to be static if the original method is non-static
Does windows 10 need .net framework?
what is VSS? Where we are using?
Explain .net Framework?
what do you mean by table-per-hierarchy?
Will there be a .net compact framework 3.0 release with release of .net framework 3.0?
Is the lack of deterministic destruction in .NET a problem
Explain bundle.config in mvc4?