Example #1
0
        public void demo11()
        {
            DemoClass dc = new DemoClass();

            try
            {
                dc.A();
            }
            catch (DivideByZeroException)
            {
                Console.WriteLine("catch clause in Main()");
            }
            finally
            {
                Console.WriteLine("finally clause in Main()");
            }
        }