.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.
 
 
 

24 lines
330 B

using System;
internal class TryCatchFinally
{
public static void Run(int n)
{
try
{
Console.WriteLine(n);
}
catch (InvalidOperationException ex)
{
Console.WriteLine(ex.Message);
}
catch (Exception) when (n > 0)
{
Console.WriteLine("filtered");
}
finally
{
Console.WriteLine("done");
}
}
}