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 |
Integer & struct are value types or reference types in .NET?
What is Global Assembly Cache (GAC) and what is the purpose of it?
What is global assembly cache
What are actions in mvc?
What is asp net framework?
What is boxing and unboxing?
can we change the page layout in ASP.NET 2.0 as grid layout like in the previous version?
If you are using components in your application, how can you handle exceptions raised in a component ?
4 Answers Accenture, BirlaSoft,
How do you register the dotnet component or assembly ?
1 Answers Accenture, BirlaSoft,
What is Reference type and value type
What is the CLR
What is MSIL, IL, CTS and, CLR