Пример #1
0
        public MethodCounterN Ncount()
        {
            MethodCounterN del = delegate()
            {
                Console.WriteLine("Таймеру: " + name + " осталось: " + Convert.ToString(count.seconds));
            };

            return(del);
        }
Пример #2
0
        public MethodCounterN Ncount()
        {
            MethodCounterN del = () =>
            {
                string str = "Таймеру: " + name + " осталось: " + Convert.ToString(count.seconds) + "\n";
                if (test != 0)
                {
                    str = "";
                }
                Console.Write(str);
            };

            return(del);
        }