Add Iterator pattern

This commit is contained in:
Petrutiu Mihai
2016-06-22 19:37:05 +03:00
parent 1ab706016e
commit 35c3c5722d
19 changed files with 409 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
using ChainOfResponssibility;
using ChainOfResponssibility.PurchaseExample;
using CommandPattern;
using IteratorPattern;
using System;
using System.Collections.Generic;
using System.Diagnostics;
@@ -12,13 +13,17 @@ namespace BehavioralPatterns
public class Program
{
public static void Main(string[] args)
{
{
IteratorPatternExamples.Run();
Console.ReadKey();
//Chain of responsibillity
//This is usefull when you have a request and you don't know who should process it
ChainOfResponsibillityExamples.Run();
Console.ReadKey();
CommandPatternExamples.Run();
Console.ReadKey();
}
}
}