2013년 11월 19일 화요일

[C#] XML Serialization Sample for Dictionary

Why need it?

Dictionary in System.Collections.Generic is can't serialize to xml.

So, You must make custom dictionary class inherited from IXmlSerializable Interface.


This sample help you for serializing dictionary

and for customizing serialization.


Caution

If you not need to serialize for dictionary,

see other article : Xml serialization

It will give more easy solution.


Source

dropbox(7-zip archive)

댓글 없음:

댓글 쓰기