码迷,mamicode.com
首页 > Windows程序 > 详细

C# BackJson Beautiful format

时间:2017-03-30 16:04:09      阅读:280      评论:0      收藏:0      [点我收藏+]

标签:ons   mat   entity   using   linq   orm   format   ack   gen   

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
 
public class ComBase
{
public string result { get; set; }
 
public ComBase(string data)
{
this.result = data;
}
}
 
public class ComRsp
{
public int code { get; set; }
public string msg { get; set; }
public ComBase data { get; set; }
 
public string BackJson(int code, string msg, string data)
{
this.code = code;
this.msg = msg;
this.data = new ComBase(data);
return Common.EntityToJson(this);
}
}
 
 

C# BackJson Beautiful format

标签:ons   mat   entity   using   linq   orm   format   ack   gen   

原文地址:http://www.cnblogs.com/math3/p/6646522.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!