62,041
社区成员
发帖
与我相关
我的任务
分享
JsonSerializerSettings setting = new JsonSerializerSettings()
{
ReferenceLoopHandling = ReferenceLoopHandling.Ignore,
PreserveReferencesHandling = PreserveReferencesHandling.Objects//,
//NullValueHandling = NullValueHandling.Ignore
};
PBInfo p = new PBInfoBLL().Get(5000);
string s = JsonConvert.SerializeObject(p, Formatting.None, setting);