I'm getting this unexpected character '' error on this code:
_timer = new Timer(1000){ AutoReset = true };
_timer.Elapsed += TimerElapsed;
I'm getting this unexpected character '' error on this code:
_timer = new Timer(1000){ AutoReset = true };
_timer.Elapsed += TimerElapsed;
Copying the ;
character from the end of your line into this ASCII value checker you can see that there are 8 characters there in total. Seems like there are some non-rendered characters after the ;
(‬
, not sure what it could be or where this came from).
Just delete it and retype a normal ;
character. Make sure to delete everything between the ;
and the line break to get rid of all the invisible characters.