Code: Select all
var timer = new System.Threading.Timer(
e => MyMethod(),
null,
TimeSpan.Zero,
TimeSpan.FromMinutes(5));
Code: Select all
Timer{dueTime: TimeSpan.Zero, period: TimeSpan.FromMinutes(5.0), Callback: { =>Self:MyMethod() }, state: null}
Close()
This gives the following compiler eror:
Error XS9002 Parser: unexpected input '{'
1 What is wrong?
2 I I assume it needs to be fixed in the ILSpy plugin?
Dick