.NET Decompiler with support for PDB generation, ReadyToRun, Metadata (&more) - cross-platform!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

30 lines
455 B

using System;
using System.Threading.Tasks;
internal class AsyncSteppingCatchHandler
{
public static async Task RunAsync()
{
await Task.Yield();
Console.WriteLine("run");
}
public static async Task<int> SumAsync(int a, int b)
{
try
{
await Task.Yield();
return a + b;
}
catch (InvalidOperationException)
{
return 0;
}
}
public static async void FireAndForget()
{
await Task.Yield();
Console.WriteLine("done");
}
}