private static void ImplementingObserverAndObservable() { var numbers = new MySequenceOfNumbers(); var observer = new MyConsoleObserver <int>(); numbers.Subscribe(observer); }
static void SimpleImplementation() { var numbers = new MySequenceOfNumbers(); var observer = new MyConsoleObserver <int>(); numbers.Subscribe(observer); }