随笔分类 - 设计模式
模式就是一种思维方式,是一种在实践中经过检验的行为方式。
摘要:/Files/nanshouyong326/c.rar
阅读全文
摘要:Encapsulates what varies. Favor composition over inheritance. Program to interfaces, not implementation. Classes should be open for extension, but closed for modification. Depend upon abstractions. ...
阅读全文
摘要:/Files/nanshouyong326/identityFinally.rar
阅读全文
摘要:/Files/nanshouyong326/ProducerConsumerQuestion.rar
阅读全文
摘要:/Files/nanshouyong326/EnumeratorComposite.rar
阅读全文
摘要:我们知道在用ArrayList之类时,Net对系统已经写好的许多类型有排序支持,但只是在相同类型的前提下:如都是Int或都是String。如果混合会怎么呢?/Files/nanshouyong326/TemplateAndStrategyForSort.rar
阅读全文
摘要:表结构: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Three]') and OBJECTPROPER...
阅读全文
摘要:Clients should not be forced to depend on methods that they do not use.
阅读全文
摘要:a.High-level modules should not depend on low-level modules.Both should depend on abstractions.b.Abstractions should not depend on details.Detils should depend on abstractions.
阅读全文
摘要:Subtypes must be substitutable for their base types.
阅读全文
摘要:Software entities (class,modules,functions,etc.) should be open for extension,but closed for modification."Open for extension.":This means that the behavior of the module can be extended.As the requir...
阅读全文
摘要:A class should have only one reason to change.
阅读全文
摘要:Regidity--The system is hard to change because every change forces many other changes to other parts of the system. Fragility--Changes cause the system to break in places that have no concept...
阅读全文
摘要:ElementCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.Collections.Generic; 3using System.Text; 4 5namespace Gof.Test.Vi...
阅读全文
摘要:AggregateCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.Collections.Generic; 3using System.Text; 4 5namespace Gof.Test....
阅读全文
摘要:ISimpleWriterCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.Collections.Generic; 3using System.Text; 4 5namespace Gof.N...
阅读全文
摘要:CommandCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.Collections.Generic; 3using System.Text; 4 5namespace Gof.Test.In...
阅读全文
摘要:菜单命令 ShowCommandCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.Collections.Generic; 3using System.Text; 4using System.W...
阅读全文
摘要:产品类Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.Collections.Generic; 3using System.Text; 4 5namespace Gof.Test.Strate...
阅读全文
摘要:语境: DoorCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2 3namespace Gof.Test.State 4{ 5 public delegate void ChangeHandler(Do...
阅读全文

浙公网安备 33010602011771号