... all I'm offering is the truth. Nothing more. RSS 2.0
# Monday, May 19, 2008

I saw this little test over at the site of Visual Stuart. Please do not compile it until you have really thought about it ... a small clue ... take note of the nested 'try/ catch' statement.

            try
            {
                try
                {
                    throw new ApplicationException();
                }
                finally
                {
                    throw new SystemException();
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.GetType().Name);
            }
Technorati tags:
Monday, May 19, 2008 11:42:07 PM (Eastern Daylight Time, UTC-04:00)  #    Comments [0] - Trackback
C#
Blogroll
Statistics
Total Posts: 336
This Year: 24
This Month: 2
This Week: 2
Comments: 32
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2010
Mark Downie
Sign In
All Content © 2010, Mark Downie
DasBlog theme 'Business' created by Christoph De Baene (delarou)