XML序列化保存数据 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.
using System.ServiceModel; using System.ServiceModel.Web; using System.Runtime.Serialization.Json; using System.IO; namespace Common { public class JsonUtility { public static string getJsonByObject(Object obj) { //实例化DataContractJsonSerializer对象,需要待