ILSpy translation gives compiler error
Posted: Thu Feb 23, 2023 8:59 pm
This compiles in C# (to set a timer calling MyMethod every 5 minutes)
ILSpy translates that to:
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
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