上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 46 下一页
摘要: powershell命令行找System.Management.Automation.dll命令 : [psobject].Assembly.Location powershell命令行找System.Management.Automation.dll命令 : [psobject].Assembly 阅读全文
posted @ 2017-05-19 15:04 小小高 阅读(3329) 评论(0) 推荐(1)
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; namespace setIp { public class Command { /**/ /// /// ... 阅读全文
posted @ 2017-05-19 14:25 小小高 阅读(571) 评论(0) 推荐(1)
摘要: 新建build.cake文件: 在powershell中执形:build.ps1 会 build当前解决方案下的所有项目 更多用法参考: http://cakebuild.net/ 阅读全文
posted @ 2017-05-19 12:11 小小高 阅读(1185) 评论(0) 推荐(0)
摘要: 测试类: 阅读全文
posted @ 2017-05-18 12:05 小小高 阅读(215) 评论(0) 推荐(0)
摘要: // 客户端调用 class Client { static void Main(string[] args) { // 创建一个菠菜实例并调用模板方法 Spinach spinach = new Spinach(); spinach.CookVegetabel(); ... 阅读全文
posted @ 2017-05-17 18:33 小小高 阅读(143) 评论(0) 推荐(0)
摘要: // 客户端调用 class Client { static void Main(string[] args) { // 创建一个代理对象并发出请求 Person proxy = new Friend(); proxy.BuyProduct(); Con... 阅读全文
posted @ 2017-05-17 18:33 小小高 阅读(127) 评论(0) 推荐(0)
摘要: // 教官,负责调用命令对象执行请求 public class Invoke { public Command _command; public Invoke(Command command) { this._command = command; } public void... 阅读全文
posted @ 2017-05-17 18:31 小小高 阅读(97) 评论(0) 推荐(0)
摘要: 代码中存在多个if-else语句的情况下,此时可以考虑使用责任链模式来对代码进行重构。 阅读全文
posted @ 2017-05-17 18:24 小小高 阅读(150) 评论(0) 推荐(0)
摘要: 用来替换if else 阅读全文
posted @ 2017-05-17 17:34 小小高 阅读(158) 评论(0) 推荐(0)
摘要: Isnull(null,1); 返回 1 isnull(1,3);返回 3 阅读全文
posted @ 2017-05-17 15:47 小小高 阅读(1930) 评论(0) 推荐(0)
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 46 下一页