惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Engineering at Meta
Engineering at Meta
博客园_首页
J
Java Code Geeks
Jina AI
Jina AI
B
Blog RSS Feed
量子位
有赞技术团队
有赞技术团队
M
MIT News - Artificial intelligence
L
LangChain Blog
Microsoft Security Blog
Microsoft Security Blog
小众软件
小众软件
博客园 - 聂微东
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 三生石上(FineUI控件)
Last Week in AI
Last Week in AI
MongoDB | Blog
MongoDB | Blog
I
InfoQ
罗磊的独立博客
H
Hackread – Cybersecurity News, Data Breaches, AI and More
爱范儿
爱范儿
Y
Y Combinator Blog
Vercel News
Vercel News
雷峰网
雷峰网

博客园 - 王德田

将页面的控件值给实体自动赋值 lookUpEdit 绑定数据的使用 解除劳动合同是如何赔偿的 水晶报表运行环境包 改iis的asp.net版本命令 正则表达式全部符号解释 jquery 获取select 选择的文本 sqlserver 将数据导成insert语句存储过程 整库 linq 反匹配 this.EditingArea' 为空或不是对象 setInterval 例子 C# 字符串 转byte 数组和byte数组转 字符串函数 JSONConverter 查询oracle 用户的存储过程 update 关联表 更新 sql多条件检索 正则表达式介绍 电容的种类与用途,基本知识 电容介绍|电容的种类和作用
NewtonJSONHelper
王德田 · 2011-08-15 · via 博客园 - 王德田


    public static class NewtonJSONHelper
    {
        public static string SerializeObject(this object obj)
        {
            return JsonConvert.SerializeObject(obj, Formatting.Indented, new JsonSerializerSettings{
                ReferenceLoopHandling = ReferenceLoopHandling.Ignore});
        }

        public static T DeserializeObject<T>(this string data)
        {
            return JsonConvert.DeserializeObject<T>(data, new JsonSerializerSettings
            {
                ReferenceLoopHandling = ReferenceLoopHandling.Ignore
            });
        }
    }