Skip to content

Instantly share code, notes, and snippets.

@lgolubyev
Created May 24, 2022
Embed
What would you like to do?
try
{
// Do something..
}
catch (Exception ex)
{
if (ex is TaskSchedulerException)
{
// Take action
}
else if (ex is TaskCanceledException)
{
// Take action
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment