public void OnNextIter2(object sender, NextIterationEventArgs args) { Console.ForegroundColor = ConsoleColor.Magenta; Console.WriteLine("Subscriber.OnNextIter2(): args.Iter = {0}", args.Iter); }
// статический слушатель public static void OnNextIter(object sender, NextIterationEventArgs args) { Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("args.Iter = {0}", args.Iter); }