- Aug 31 Mon 2020 09:56
-
[Design Pattern] 代理模式 (Proxy Pattern)
- Feb 01 Thu 2018 11:36
-
Composite Pattern – Design Pattern (Using C#) – Part II

1. Add Mouse (0) to the list 2. Add Monitor (1) to the list 3. Create a peripheral (ph, 10), which group Mouse and Monitor together, and add to the list. 4. Add CPU (2) to the list
- Jan 26 Fri 2018 10:00
-
Image Blending and Management of Regions of Interest (ROI) – Part 2

To-do list: In this case, I am planing to put an image onto a RectROI object. The pixel size of the scenery image is not necessarily equal to that of a RectROI object. Instead the image size is variable and capable of adaptive to any size you set .
- Jan 24 Wed 2018 01:22
-
Observer Pattern – Design Pattern (Using C#) – Part II

Today I reveiewed Observer Pattern – Design Pattern (Using C#) and have finished watching Observer Design Pattern tutorial.
As usual, I implemented the example in C# instead of JAVA.
- Jan 23 Tue 2018 03:17
-
Visitor Pattern – Design Pattern (Using C#)

What is the Visitor Design Pattern ? 1. Allows you to add methods to classes of different types without much altering to these classes. 2. You can make completely different methods depending on the class used.
- Jan 22 Mon 2018 11:01
-
Interpreter Pattern – Design Pattern (Using C#)
A useful tutorial that help you understand about Interpreter Pattern. 008 Interpreter Pattern Another useful stuff about Interpreter Pattern, but the speaker hadn`t used C# for implementation. The Interpreter Pattern Revisited
- Jan 22 Mon 2018 10:19
-
Flyweight Pattern – Design Pattern (Using C#)

What is flyweight pattern? 1. Used when you need to create a large number of similar objects 2. To reduce memory usage you share objects that are similar in some way rather than creating new ones Now we are going to create a lot of rectangles with specific Intrinsic State: Color <---- which all of the rectangle objects are going to share in order to get the
- Jan 20 Sat 2018 09:07
-
Chain Of Responsibility – Design Pattern (Using C#)

Create a logger Pass a message with level = debug and log it Pass a message with level = info and log it Pass a message with level = error and log it Here debug < info < error … level wis
- Jan 19 Fri 2018 14:48
-
Command Pattern – Design Pattern (Using C#) – Part II

Today I am going to show you another way to implement the example demonstrated in the last episode about command pattern. Here is the UML diagram for command pattern and it will be implemented as usual in C#. This time Command block is about to become an abstract class, and LightOnCommand is one of its concrete commands.
- Jan 06 Sat 2018 09:01
-
Null Object Pattern – Design Pattern (Using C#)
- Jan 04 Thu 2018 19:31
-
State Machine – Design Pattern (Using C#)
- Jan 04 Thu 2018 15:28
-
Iterator Pattern – Design Pattern (Using C#)

A. Iterator:
1: interface Iterator
2: {3: object First();
4: object Next();
5: bool IsDone();
6: object CurrentItem();
7: }

