简体   繁体   中英

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 its 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM