公司框架常用函数和技巧
摘要:
1.将json字符串转化为动态类型并调用 dynamic d = JObject.Parse(actionModel.jsonEntity); string username = d.UserName.ToString();2.将json字符串直接转换为对象 var actionModel = Utils.ParseFromJson(action); EmailInfo entity = (EmailInfo)Newtonsoft.Json.JsonConvert.DeserializeObject(actionModel.jsonEntity, typeof(Ema... 阅读全文
posted @ 2013-10-27 00:27 huakaiyueluo 阅读(364) 评论(0) 推荐(0) 编辑