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 difference between managed and unmanaged code?
sql related question (outer join, left, right etc) array vs hashtable CRL sqldatareader vs dataset what is WPF, WCF, compare to WinForms Webservices Asp.net MVC vs WebForms?
What is .net framwork? what is web application? what is CLR? How does work CLR & wht is work of CLR? What is compile? wht is thread? what does use in .net?
Hello frnds, Actually i am plannig to put fake Xperince letter is it good or not, and please suggest me from where we take it.
Explain .net Framework?
What is the difference between the value-type variables and reference-type variables in terms of garbage collection ?
What is .net architecture and framework?
What are child actions in ASP.Net MVC?
What is global assembly cache
What is Value type and reference type in .Net
What's the .NET class that allows the retrieval of a data element using a unique key
What are the 3 segments of the default route, that is present in an ASP.NET MVC application?