随笔分类 -  .NET反射机制学习

.NET反射机制学习
数据类型和C#关系对应
摘要:sqlserver与c#中数据类型的对应关系///private string changetocsharptype(string type){string reval=string.empty;switch(type.tolower()){case "int ":reval= "int32 ";b 阅读全文

posted @ 2019-11-07 20:42 topguntopgun 阅读(477) 评论(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) 编辑

把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) 编辑

导航

< 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

统计

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