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
System.Threading.Timer
TimerCallback delegate (first argument of the Timer constructor you use) takes one argument (state) of type object.
TimerCallback
Timer
object
All you have to do it to add parameter to the test method
test
public static void test(object state) { Console.WriteLine("test"); }
And the issue will be resolved.