上一页 1 ··· 46 47 48 49 50 51 52 53 54 ··· 75 下一页

2016年5月2日

ASP.NET WebAPI从入门

摘要: 在新出的MVC4中,增加了WebAPI,用于提供REST风格的WebService,新生成的WebAPI项目和典型的MVC项目一样,包含主要的Models、Views、Controllers等文件夹和Global.asax文件。Views对于WebAPI来说没有太大的用途,Models中的Model 阅读全文

posted @ 2016-05-02 20:03 itjeff 阅读(377) 评论(0) 推荐(0)

2016年4月27日

.net中的Queue和Stack

摘要: 1.ArrayList类 ArrayList类主要用于对一个数组中的元素进行各种处理。在ArrayList中主要使用Add、Remove、RemoveAt、Insert四个方法对栈进行操作。Add方法用于将对象添加到ArrayList的结尾处;Remove方法用于从ArrayList中移除特定对象的 阅读全文

posted @ 2016-04-27 18:27 itjeff 阅读(1016) 评论(0) 推荐(0)

使用C#实现顺序队列

摘要: 队列(Queue)是插入操作限定在表的尾部而其它操作限定在表的头部进行的线性表。把进行插入操作的表尾称为队尾(Rear),把进行其它操作的头部称为队头(Front)。当对列中没有数据元素时称为空对列(Empty Queue)。 队列通常记为:Q= (a1,a2,…,an),a1为队头元素,an为队尾 阅读全文

posted @ 2016-04-27 18:25 itjeff 阅读(2950) 评论(0) 推荐(0)

2016年4月26日

[转]jQuery选择器总结

摘要: 该文章转载自:http://www.cnblogs.com/onlys/articles/jQuery.html jQuery的选择器那绝对最强大的,各种你想不到,原先想总结一下,没想到搜索到这个比我总结更详细,感谢这位作者,我已用最大的字号标注出来了。 1 2 3 4 5 6 7 8 9 10 1 阅读全文

posted @ 2016-04-26 15:02 itjeff 阅读(145) 评论(0) 推荐(0)

2016年4月19日

Delegate成员变量和Event的区别

摘要: 上周五有同事问了我一个问题:Delegate和Event有什么区别?具体来说在设计一个类的时候,声明一个事件(Event)和声明一个Delegate类型的成员变量有啥区别。 我的第一反应是没啥区别,虽然从语法看起来不一样,但从代码希望达成的效果来看是一致的,本质都是回调函数。当然区别是肯定有的,我能 阅读全文

posted @ 2016-04-19 22:19 itjeff 阅读(754) 评论(0) 推荐(0)

2016年4月5日

DataTable转化为List

摘要: public List<T> ConvertToList<T>(DataTable dt) where T : new() { // 定义集合 List<T> ts = new List<T>(); // 获得此模型的类型 Type type = typeof(T); string tempName 阅读全文

posted @ 2016-04-05 16:49 itjeff 阅读(263) 评论(0) 推荐(0)

2016年1月20日

Linq的Distinct太不给力了[转]

摘要: 假设我们有一个类:Productpublic class Product{ public string Id { get; set; } public string Name { get; set; }}Main函数如下:static void Main(){ List produ... 阅读全文

posted @ 2016-01-20 16:05 itjeff 阅读(236) 评论(0) 推荐(0)

2016年1月12日

C#后台利用正则表达式查找匹配字符

摘要: /// /// 发送短信 系统固化短信 /// /// /// /// /// /// public static Result SendMsgBySysInit(string memberId, string mobile, string subType, int groupId) ... 阅读全文

posted @ 2016-01-12 16:06 itjeff 阅读(1304) 评论(0) 推荐(0)

C# Dictionary 的几种遍历方法

摘要: Dictionary list =newDictionary(); list.Add("d", 1);//3.0以上版本foreach(variteminlist) {Console.WriteLine(item.Key + item.Value); }//KeyValuePairforeach(K... 阅读全文

posted @ 2016-01-12 16:02 itjeff 阅读(2622) 评论(0) 推荐(0)

2016年1月7日

javascript keycode大全

摘要: keycode 8 = BackSpace BackSpace keycode 9 = Tab Tab keycode 12 = Clearkeycode 13 = Enter keycode 16 = Shift_L keycode 17 = Control_L keycode 18 = Alt_... 阅读全文

posted @ 2016-01-07 15:23 itjeff 阅读(214) 评论(0) 推荐(0)

上一页 1 ··· 46 47 48 49 50 51 52 53 54 ··· 75 下一页

导航