摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.IO;namespace Command{ p... 阅读全文
posted @ 2015-03-18 17:31 流浪的狸猫 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 1编写帮助类根绝url得到jsonpublic static string Post(string url) { string strURL = url; //创建一个HTTP请求 HttpWebRequest re... 阅读全文
posted @ 2015-03-18 17:29 流浪的狸猫 阅读(673) 评论(0) 推荐(0) 编辑
摘要: 1linq的左连接查询var boundList = from x in text.S_Outbound join y in text.S_Outbound_Per on x.Shipment... 阅读全文
posted @ 2015-03-18 17:22 流浪的狸猫 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 说明: 策略模式定义了一系列的算法,并将每一个算法封装起来,而且使它们还可以相互替换。策略模式让算法独立于使用它的客户而独立变化组成: —抽象策略角色: 策略类,通常由一个接口或者抽象类实现。 —具体策略角色:包装了相关的算法和行为。 —环境角色:持有一个策略类的引用,最终给客户端调... 阅读全文
posted @ 2015-03-18 17:00 流浪的狸猫 阅读(173) 评论(0) 推荐(0) 编辑