My IDE is always opening up and giving me this message:
try
{
await Task.Delay(1000, App.tokenSource2.Token);
}
catch (TaskCanceledException ex) { ex = null; }
The variable ex is declared but never used.
I would like to avoid being the message. Any suggestions?