2015-02-12 76 views
0

我需要将XML转换为C#类以用于Windows Phone 8.1应用程序。然后我需要将代码中的xml反序列化为类的对象。如何将xml转换为windows phone 8.1的类...?

在桌面应用程序中,我可以使用xsd.exe来完成。但是,当我复制的.cs生成的文件到Windows Phone 8.1的应用程序,它显示错误的

[System.SerializableAttribute()] 
[System.ComponentModel.DesignerCategoryAttribute("code")] 

,并在代码中deserialise数据

Stream fs = new FileStream(filepath,FileMode.Open); 

它无法识别的FileStream,即使添加System.IO;

如何在windows phone 8.1中实现相同的功能?

+0

它的Visual Studio版本,你是使用? – Dev 2015-02-12 09:24:03

+0

Visual studio 2013 Express及更新3 for Windows – 2015-02-14 13:28:49

回答

相关问题