using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication4
{
class Program
{
static void Main(string[] args)
{
int g = 1;
A a = new A();
a.T(out g);
Console.WriteLine(g.ToString());
Console.ReadKey();
}
}
class A
{
public void T(out int param)
{
B b = new B();
b.T(out param);
}
}
class B
{
public void T(out int param)
{
try
{
param = 4;
Console.WriteLine(param.ToString());
}
catch
{
}
finally
{
param = 4;
}
}
}
}