C# xml转换为对象
2021-01-09 04:28
标签:set var info 反序 cep ons new res root C#类 转换: C# xml转换为对象 标签:set var info 反序 cep ons new res root 原文地址:https://www.cnblogs.com/GarsonZhang/p/13112239.html [XmlRoot("responses")]
public class Responses
{
//[XmlElement("response")]
public YUN_DA_Response response { get; set; }
public Responses()
{
response = new YUN_DA_Response();
}
}
public class YUN_DA_Response
{
public string order_serial_no { get; set; }
public string mail_no { get; set; }
public string status { get; set; }
public string msg { get; set; }
public string pdf_info { get; set; }
}
///
string testStr = @"
上一篇:WIN32 卷 目录 文件 操作
下一篇:WIN32硬盘文件映射到内存