Question
Can we customize the serialization process?

Answers

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.   Your Comment




More Software Questions..
What is the inputsplit in map reduce software?

What is software configuration management?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?

What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?

Which oracle package is used to manage the oracle lock management services?

What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?

What is marker interface?

What types of partitioning are there for BW?



Search
Can you Answer!!
  • Q How to start llt and gab
  • Q Do you think Barbie is a negative role model for young girls?
  • Q What would you do if you saw a child behaving inappropriately (cheating, bullying) with his/her peers, but they weren't aware that you saw? Would that be different from what you would do if they knew you were there?
  • Q What's the syntax / semantics for a "class template"?
  • Q Which country plays Ashes test match series against each other?
  • Q Consider the following techniques. Which are static and which are dynamic techniques?
  • Q What is the NSA?
  • Q In SQL Server 2005, if you initialize a subscription using FTP, how is the password sent?
  • Q If we are not returning any records from the database, which method is to be used?
  • Q What menu is selected to cut, copy and paste?
  • Q statement: all green are blue are blue, all blue are white conclusion: