.NET Framework · Programátorská hádanka
Programátorská hádanka: Exceptions
Co bude výstupem?
[code lang=“csharp“ light=“true“]
try
{
try
{
throw new Exception("A");
}
catch
{
throw new Exception("B");
}
finally
{
throw new Exception("C");
}
}
catch (Exception ex)
{
Console.Write(ex.Message);
}
[/code]
Výsledek: https://dotnetfiddle.net/6SWPqL