Пример #1
0
        private static void ImplementingObserverAndObservable()
        {
            var numbers  = new MySequenceOfNumbers();
            var observer = new MyConsoleObserver <int>();

            numbers.Subscribe(observer);
        }
Пример #2
0
        static void SimpleImplementation()
        {
            var numbers  = new MySequenceOfNumbers();
            var observer = new MyConsoleObserver <int>();

            numbers.Subscribe(observer);
        }