using System; namespace Test { public class TestException { public static void Main() { Object a = null; try { } finally { try { Console.WriteLine(a.ToString()); } catch(NullReferenceException) { Console.WriteLine("NullReference"); } } } } }