Where Can I find good tutorial about XMl serialization to the object? Thanks.
相关问题
- Sorting 3 numbers without branching [closed]
- Illegal to have multiple roots (start tag in epilo
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
You can easily find many tutorials about serialization data using .Net on the Web. However, let me remind some points:
Types of serialization:
a. XML Serialization : Please have a look at http://www.switchonthecode.com/tutorials/csharp-tutorial-xml-serialization
b. Binary Serialization: Please refer to http://www.switchonthecode.com/tutorials/csharp-tutorial-serialize-objects-to-a-file
Also please be aware of the security aspects when you work (reading and writing data) with files. There is a good tutorial here http://msdn.microsoft.com/en-us/library/system.security.permissions.fileiopermission.aspx