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)
|
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();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user