09 2014 档案

jquery或者JavaScript调用WCF服务的方法
摘要:/******************************************************************* Copyright (C): 一心堂集团* CLR版本: 4.0.30319.18063* 命名空间名称: WcfService1* 文件名: IJoonServ... 阅读全文

posted @ 2014-09-24 17:06 topguntopgun 阅读(1083) 评论(0) 推荐(0) 编辑

JavaScript调用wcf服务,并且处理返回的字典集合
摘要:1、第一步创建wcf服务的方法using System;using System.Collections.Generic;using System.Linq;using System.Runtime.Serialization;using System.ServiceModel;using Syst... 阅读全文

posted @ 2014-09-24 11:44 topguntopgun 阅读(372) 评论(0) 推荐(0) 编辑

c#对dataset和list集合压缩和解压,能提高访问速度
摘要:public class YS { public static byte[] Decompress(byte[] data) { byte[] bData; MemoryStream ms = new Memory... 阅读全文

posted @ 2014-09-23 16:54 topguntopgun 阅读(758) 评论(0) 推荐(0) 编辑

使用GZipStream压缩和解压文件
摘要:最近做了一个用.NET里的GZipStream压缩解压缩gzip文件的小程序。GZipStream在System.IO.Compression底下,使用起来也很简单。虽然GZipStream是Stream类的一个下级类,但它只相当于一个转换器。在两个Stream之间将数据转换成为压缩或解压缩数据。下... 阅读全文

posted @ 2014-09-23 11:19 topguntopgun 阅读(1413) 评论(0) 推荐(1) 编辑

把dataset对象转换成list集合方法
摘要:1 public static List GetList(DataTable table) where T:new() 2 { 3 List list = new List(); 4 // 5 T t = defa... 阅读全文

posted @ 2014-09-23 10:24 topguntopgun 阅读(1003) 评论(0) 推荐(0) 编辑

default(T) 和 typeof 和 GetType()
摘要:一、default(T) 在泛型编成中如果不限制T类型参数是值类型或引用类型的话 你程序内部可能会出现错误,因为值类型不允许NULL.所以default用来获取一个类型的默认值,对于值类型得到new T()基本得到的都是0;对于引用类型会得到Null或者你不使用Default关键词,自己通过反射得到... 阅读全文

posted @ 2014-09-23 10:01 topguntopgun 阅读(194) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示