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
How route table has been created in ASP.NET ASP.Net MVC?
Is the following route definition a valid route definition? {controller}{action}/{id}
How to Create an Intranet Site Using ASP.NET MVC?
Explain the 'page lifecycle' of an ASP.NET MVC?
How does the .net framework 3.0 relate to the .net framework 2.0?
What are Validation Annotations?
What is entity framework? : Entity framework
Which filter executes first in an asp.net mvc application?
what do you mean by table-per-type?
What does a viewmodel do?
What are scaffold templates in mvc?
How large is the .net framework 3.0? Does this change make the release larger?
Can we free memory explicitly without waiting for garbage collector to free the memory in .net compact framework?
what is client wins and store wins mode in entity framework concurrency?
Can you please explain the request flow in ASP.NET MVC framework?