The best overloaded method match for System.Threading.Timer.Timer() has some invalid arguments

前端 未结 3 1829
时光取名叫无心
时光取名叫无心 2021-01-18 10:00

I\'m making a console application that must call a certain method in timed intervals.

I\'ve searched for that and found that the System.Threading.Timer

3条回答
  •  不要未来只要你来
    2021-01-18 11:04

    write the test method as follows to resolve the exception:

    public static void test(object state)
            {
                Console.WriteLine("test");
            }
    

提交回复
热议问题