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中實現相同的功能?
它的Visual Studio版本,你是使用? – Dev 2015-02-12 09:24:03
Visual studio 2013 Express及更新3 for Windows – 2015-02-14 13:28:49