// keyword__finally
// compile with: /clr
#include "stdafx.h"
using namespace System;

ref class MyException: public System::Exception{};

void ThrowMyException()
{
	throw gcnew MyException;
}

int main()
{
	try {
		Console::WriteLine("In try block...");
		ThrowMyException();
	}
	catch (MyException^ e)
	{
		Console::WriteLine("In catch block...");
		Console::WriteLine(e->GetType());
	}
	finally
	{
		Console::WriteLine("In finally block...");
   }
}
