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
What is filters in web api?
Explain ASP.NET MVC Identity and Security?
Where is tempdata stored?
What is ado.net data provider? : Entity framework
what is deferred loading(lazy loading)?
What is the difference between old ADO.NET and Entity framework coding techniques?
What is routeconfig.cs in mvc 4?
Explain the .net framework.
Which are the important namespaces used in ASP.Net MVC?
When will the .net framework 3.0 be released?
what is split entity?
Mention two instances where routing is not implemented or required?
What is the difference between entity framework and mvc?
Explain what is the difference between view and partial view?
What is rxjava used for?