Finally block is executed. You just create a file inside that block then easily visible that.
Just see the code bellow and test it(create a similar directory with appropiate permission and see the result)
int i = 123;
string s = "Some string";
object o = s;
File.Create(@"D:\Temp\MyTest1.sql").Close();
try
{
i = (int)o;
}
finally
{
File.Create(@"D:\Temp\MyTest2.sql").Close();
Console.Write("i = {0}", i);
}
After executing code you will see Temp directory contain 2 new files MyTest1.sql and MyTest12sql.
Forgot to mention, You must built it from visual studio and then run it from file system with double click. If you run it from visual studio with debug mode code may not reach there.