随笔分类 -  设计模式

摘要:class Program { static void Main(string[] args) { var state = new OpeningState(); var lift = new Lift(); lift.SetListState(state); ... 阅读全文
posted @ 2016-03-28 23:37 zqcoder 阅读(152) 评论(0) 推荐(0)
摘要:class Program { static void Main(string[] args) { string s = "zzq2"; string temp = string.Empty; Ma... 阅读全文
posted @ 2014-02-15 00:53 zqcoder 阅读(222) 评论(0) 推荐(0)
摘要:最近一直在看DDD开发 规约似乎用得很普遍。 但是还是理解不了。所以记录下学习的进度。~规约(Specification)模式目的:查询语句和查询条件的分离写了一个关于规约的模拟小程序 class Program { static void Main(string[] args)... 阅读全文
posted @ 2014-02-11 23:39 zqcoder 阅读(572) 评论(0) 推荐(0)
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace ServiceL... 阅读全文
posted @ 2014-02-09 19:53 zqcoder 阅读(1271) 评论(0) 推荐(0)