Serialize and deserialize in both .NET framework 2 and 4 - C#
I have a winform application in C# .NET framework 2 which I want to serialize i开发者_运维问答ts objects into xml files and to use these files in silverlight framework 4 by deserialize (c#).
Which serialize class is supported by framework 2 and 4?
What's wrong with good ol' XmlSerializer
?
You say you want to serialize objects into XML files anyway, and XmlSerializer
is supported on version 2.0 of the .NET Framework as well as 4.0/Silverlight.
Check the "Other Versions" dropdown on the linked documentation page for any specific details that apply to particular versions of the Framework.
XmlSerializer
精彩评论