Add observer pattern
Update memento pattern examples class to have run as static method Update behavioral patterns program.cs to maintain the order
This commit is contained in:
18
src/ObserverPattern/ObserverPatternExamples.cs
Normal file
18
src/ObserverPattern/ObserverPatternExamples.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using ObserverPattern.Twits;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ObserverPattern
|
||||
{
|
||||
|
||||
public class ObserverPatternExamples
|
||||
{
|
||||
public static void Run()
|
||||
{
|
||||
ObservableTwitsExample obsTwits = new ObservableTwitsExample();
|
||||
obsTwits.Run();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user