Kunal-Chowdhury.com - Microsoft Technology Blog for developers and consumers: XML
Showing posts with label XML. Show all posts
Showing posts with label XML. Show all posts

Quick Tip: Common mistakes with #XML serialization in .NET/C#

If you are working with XML serialization in .NET/C#, you might have already encountered this and might have analyzed a lot why your data is not serializing though you have written proper code. The reason/solution might be simple but in case you are not aware of such common mistakes, you will definitely break your head finding the root cause.

 

In this quick post, we will learn about the common mistakes that may happen while declaring the properties of data class that you are going to serialize. Continue reading and let me know, if you find more points to be added here.



Quick Tip: How to prevent a property from #XML serialization?

Most of the cases we use XML files to serialize/de-serialize data from/to the app. To do this, we expose properties of known types and pass it to the serializer for automatic serialization process. Sometime, we don’t need to serialize all the properties and manually need to mark them from serialization process.

 

In this small blog post, we are going to see the way, by which you can prevent a property from the XML serialization process. Continue reading to know more.

 
© 2008-2017 Kunal-Chowdhury.com - Microsoft Technology Blog for developers and consumers | Designed by Kunal Chowdhury
Back to top