Change order of patterns

Change on Iterator example to go from simple to complex
This commit is contained in:
Petrutiu Mihai
2016-06-22 19:38:12 +03:00
parent 35c3c5722d
commit 47cd9fc73d
2 changed files with 7 additions and 11 deletions

View File

@@ -14,8 +14,7 @@ namespace BehavioralPatterns
{ {
public static void Main(string[] args) public static void Main(string[] args)
{ {
IteratorPatternExamples.Run();
Console.ReadKey();
//Chain of responsibillity //Chain of responsibillity
//This is usefull when you have a request and you don't know who should process it //This is usefull when you have a request and you don't know who should process it
ChainOfResponsibillityExamples.Run(); ChainOfResponsibillityExamples.Run();
@@ -24,6 +23,9 @@ namespace BehavioralPatterns
CommandPatternExamples.Run(); CommandPatternExamples.Run();
Console.ReadKey(); Console.ReadKey();
IteratorPatternExamples.Run();
Console.ReadKey();
} }
} }
} }

View File

@@ -1,10 +1,6 @@
using IteratorPattern.FileExample; using IteratorPattern.FileExample;
using IteratorPattern.TVExample.TVEnumerable; using IteratorPattern.TVExample.TVEnumerable;
using IteratorPattern.TvIterator; using IteratorPattern.TvIterator;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace IteratorPattern namespace IteratorPattern
{ {
@@ -14,16 +10,14 @@ namespace IteratorPattern
{ {
public static void Run() public static void Run()
{ {
ReadBigFilesExample bigFileExample = new ReadBigFilesExample();
bigFileExample.Run();
TVIteratorExample tvIteratorExample = new TVIteratorExample(); TVIteratorExample tvIteratorExample = new TVIteratorExample();
tvIteratorExample.Run(); tvIteratorExample.Run();
TVEnumerableExample tvEnumerableExample = new TVEnumerableExample(); TVEnumerableExample tvEnumerableExample = new TVEnumerableExample();
tvEnumerableExample.Run(); tvEnumerableExample.Run();
ReadBigFilesExample bigFileExample = new ReadBigFilesExample();
bigFileExample.Run();
} }
} }
} }