Add basic memento pattern

This commit is contained in:
Petrutiu Mihai
2016-06-23 20:43:37 +03:00
parent 0a130b0405
commit 37151a23c7
10 changed files with 210 additions and 28 deletions

View File

@@ -3,6 +3,7 @@ using ChainOfResponssibility.PurchaseExample;
using CommandPattern;
using IteratorPattern;
using MediatorPattern;
using MememntoPattern;
using System;
using System.Collections.Generic;
using System.Diagnostics;
@@ -16,6 +17,9 @@ namespace BehavioralPatterns
public static void Main(string[] args)
{
MementoPatternExamples mementoPattern = new MementoPatternExamples();
mementoPattern.Run();
MediatorPatternExamples.Run();
//Chain of responsibillity
//This is usefull when you have a request and you don't know who should process it