I'm programming a plugin and trying to implement a LAMBDA expression for Timer creation based on the following documentation: https://umod.org/documentation/api/timers
As of right now the code looks as follows:
LocationUpdater = timer.Repeat(1f , 0, () => {
Puts("test");
});This doesn't show any errors in my IDE and follows the documentation exactly. However, when I try to put this code or any code that uses an expression bodied member (see https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/statements-expressions-operators/expression-bodied-members), I get an error.
Error while compiling: MarkedForDeath.cs(56,79): error CS1525: Unexpected symbol `)'
It looks like the compiler is not recognizing my LAMBDA statement. I have tried reformatting my code and moving the LAMBDA to different lines, however the same error persists.
For reference, I am running Version 2.0.4891.0 of Rust Oxide for Linux.