摘要:
public static T XmlToObject<T>(string str) where T : class { using (Stream stream = new MemoryStream()) { byte[] data = System.Text.Encoding.UTF8.GetB 阅读全文
摘要:
public static string ObjectToXml(object obj) { using (MemoryStream memoryStream = new MemoryStream()) using (StreamReader reader = new StreamReader(me 阅读全文