摘要: 上一篇随笔写的是入参结构体转字符串,现在需要把保存到服务器的字符串还原为结构体,这里记录一下操作步骤:1. 格式化字符串。XmlRpcDeserializer 支持反序列化…节点开始的数据,所以需要先把字符串首尾其他字符去掉。 1: // args 为结构体的字符串 2: TaskArgsStruct argStruct = null; 3: const string startValue = ""; 4: const string endValue = ""; 5: int startIndex = args.IndexOf(startValue); 阅读全文
posted @ 2013-06-24 10:02 浸水 阅读(471) 评论(0) 推荐(0) 编辑