資源簡介
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Text;
using?System.Threading.Tasks;
namespace?Json
{
????///?
????///?Jsonhelper?的摘要說明
????///?
????public?class?Jsonhelper
????{
????????///?
????????///?轉換對象為JSON格式數據
????????///?
????????///?類
????????///?對象
????????///?字符格式的JSON數據
????????public?string?GetJSON(object?obj)
????????{
????????????string?result?=?String.Empty;
????????????try
????????????{
????????????????System.Runtime.Serialization.Json.DataContractJsonSerializer?serializer?=
????????????????new?System.Runtime.Serialization.Json.DataContractJsonSerializer(typeof(T));
????????????????using?(System.IO.
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????3918??2015-04-07?15:51??Json
-----------?---------??----------?-----??----
?????????????????3918????????????????????1
- 上一篇:C# ORC圖像處理
- 下一篇:C# 即時通訊系統源碼(仿QQ)(My QQ)
評論
共有 條評論