Change order of patterns
Change on Iterator example to go from simple to complex
This commit is contained in:
@@ -14,8 +14,7 @@ namespace BehavioralPatterns
|
||||
{
|
||||
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();
|
||||
@@ -24,6 +23,9 @@ namespace BehavioralPatterns
|
||||
CommandPatternExamples.Run();
|
||||
Console.ReadKey();
|
||||
|
||||
IteratorPatternExamples.Run();
|
||||
Console.ReadKey();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
using IteratorPattern.FileExample;
|
||||
using IteratorPattern.TVExample.TVEnumerable;
|
||||
using IteratorPattern.TvIterator;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace IteratorPattern
|
||||
{
|
||||
@@ -14,16 +10,14 @@ namespace IteratorPattern
|
||||
{
|
||||
public static void Run()
|
||||
{
|
||||
ReadBigFilesExample bigFileExample = new ReadBigFilesExample();
|
||||
bigFileExample.Run();
|
||||
|
||||
TVIteratorExample tvIteratorExample = new TVIteratorExample();
|
||||
tvIteratorExample.Run();
|
||||
|
||||
TVEnumerableExample tvEnumerableExample = new TVEnumerableExample();
|
||||
tvEnumerableExample.Run();
|
||||
|
||||
|
||||
ReadBigFilesExample bigFileExample = new ReadBigFilesExample();
|
||||
bigFileExample.Run();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user