Ejemplo n.º 1
0
        public static void ObserverPattern()
        {
            var tick = new Tick("MSFT", 100);

            tick.Add(new Trader("Haithem"));
            tick.Add(new Trader("Fred"));

            tick.Price = 101;
            tick.Price = 102;
            tick.Price = 103;
        }