标签:summary color tostring obj UI turn pre gets return
如下:
/// <summary> /// 生成 Json /// </summary> /// <param name="obj"></param> /// <returns></returns> public string ObjToJson(Object obj) { StringWriter sw; JsonSerializer serializer = new JsonSerializer(); sw = new StringWriter(); serializer.Serialize(new JsonTextWriter(sw), obj); return sw.GetStringBuilder().ToString(); }
标签:summary color tostring obj UI turn pre gets return
原文地址:https://www.cnblogs.com/zhangchaoran/p/8902551.html