class MyClass
{
static void Main()
{
System.Console.WriteLine(new MyClass().Foo());
}
string Foo()
{
try
{
throw new System.Exception("An Exception ");
System.Console.Write("Inside try ");
}
catch(System.Exception ex )
{
return ex.Message;
}
finally
{
System.Console.Write("Finally ");
}
return "Outside try ";
}
}
------解决方案--------------------
Finally
An Exception