摘要:
1. 取交集 (A和B都有)List A : { 1 , 2 , 3 , 5 , 9 }List B : { 4 , 3 , 9 } var intersectedList = list1.Intersect(list2);结果 : { 3 , 9 }判断A和B是否有交集 bool isIntersected = list1.Intersect(list2).Count() > 02. 取差集 (A有,B沒有)List A : { 1 , 2 , 3 , 5 , 9 }List B : { 4 , 3 , 9 }var expectedList = list1.Except(list2) 阅读全文
posted @ 2011-09-06 17:54
虎头
阅读(15149)
评论(2)
推荐(2)
摘要:
Once upon a time, all we needed to worry about was reducing Bytes and Requests and playing around with load order to make things faster. Nowadays, we are increasingly impacting one more major component in performance – CPU utilization. Using jQuery and other frameworks that make selecting nodes and 阅读全文
posted @ 2011-09-06 16:41
虎头
阅读(1061)
评论(0)
推荐(1)
摘要:
private CookieContainer GetCookies() { CookieContainer myCookieContainer = new CookieContainer(); HttpCookie requestCookie; int requestCookiesCount = Request.Cookies.Count; for (int i = 0; i < requestCookiesCount; i++) { requestCookie = Request.Cookies[i]; Cookie clientCookie = new Cookie(request 阅读全文
posted @ 2011-09-06 14:53
虎头
阅读(8280)
评论(1)
推荐(0)

浙公网安备 33010602011771号