C# Json
来源:互联网 发布:什么游戏对amd有优化 编辑:程序博客网 时间:2024/04/29 23:23
序列化与反序列化:
http://zhidao.baidu.com/link?url=-rL15HQWzl2h5O-jbrbQRes3J0yfO0Zl3xqLSHPd9R-fi5RdA4xe83lkCl6Esvl8e4XffOWlHZG_pjDpe32YUq
http://www.cnblogs.com/langlang/archive/2009/12/11/1622267.html
http://www.cnblogs.com/litian/p/3870975.html
程序集支持:
http://jingyan.baidu.com/article/6fb756ecd2b051241858fbef.html
序列化代码:
[DataContractAttribute] //成员若还有对象,改为CollectionDataContractAttribute private class App { [DataMemberAttribute]public string appName { get; set; } [DataMemberAttribute]public string appPath { get; set; } [DataMemberAttribute]public string versionName { get; set; } [DataMemberAttribute]public int versionCode { get; set; } [DataMemberAttribute]public string content { get; set; } } private App[] app = new App[]{ new App { appName="凯旋汇 v0.2.3", appPath="http://m.3881688.com/download/kxh.apk", versionCode=23, content = "文件大小:2.63MB\n1.增加推荐给好友功能\n2.优化减少体积" }, new App { appName = "凯旋汇商家版 v0.0.1", appPath = "http://m.3881688.com/download/kxhDealer.apk", versionCode = 1, content = "文件大小:2.63MB\n1.增加推荐给好友功能\n2.优化减少体积" } }; //版本检测 public string GoUp(int id = 0) { using (MemoryStream ms = new MemoryStream()) { new DataContractJsonSerializer(typeof(App)).WriteObject(ms, app[id]); return Encoding.UTF8.GetString(ms.ToArray()); } }
0 0
- C# Json
- C# Json
- C# JSON
- c# json
- C# JSON
- C# 解析JSON -- Newtonsoft.Json
- C# 解析json Newtonsoft.json
- c#转换json
- C#简单json实例
- C#操作JSON
- C#转换json
- C#操作JSON数据
- C#获取JSon
- C#解释json
- c# json to object
- c# 生成JSON
- c#解析JSON总结
- C#读取JSON
- 在化妆学校学习化妆可靠吗靠谱吗
- leetcode之Median of Two Sorted Arrays
- Oracle修改字段类型和长度
- 55分钟学会正则表达式
- 使用Tcl脚本分配FPGA管脚
- C# Json
- quick-lua 学习笔记(一)t
- 创建型设计模式---原型模式(Prototype)
- 关于“using namespace std”
- use a recycled bitmap 的发现
- Bimap实例化研究
- Markdown中插入数学公式的方法
- dubbo 用户指南 ***************
- 程序员是什么又代表这多少角色?你想过吗?