#include "stdafx.h"
using namespace System;
int main()
{
try
{
try
{
throw gcnew Exception("XYZ");
}
catch( Exception^ exception)
{
Console::WriteLine("Inner catch");
}
finally
{
Console::WriteLine("Inner finally");
}
}
catch(Exception^ exception)
{
Console::WriteLine("Outer catch");
}
finally
{
Console::WriteLine("Outer finally");
}
}