"The code inside the finally block is guaranteed to execute before the exit of the function, whether there is an exception or not." - Eric Gunnerson, A Programmer's Introduction to C#.
> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > Behalf Of Charles Wiltgen > Sent: Tuesday, April 30, 2002 7:01 PM > To: Mono List > Subject: Re: [Mono-list] RFC: Corlib Unit Test on Linux How-To > > > Dietmar Maurer wrote... > > >> I have a vague recollection of reading somewhere that .Net doesn't run > >> finally clauses until it finds a matching catch block for the > exception. > > > > really - that sounds strange. > > "Applied Microsoft .NET Framework Programming" says that finally is > guaranteed to execute no mater what kind of exception is thrown, whether > or not the try statement has any catch blocks. > > -- > Charles Wiltgen > > "Love is a snowmobile racing across the tundra and > then suddenly it flips over, pinning you underneath. > At night, the ice weasels come." - Nietzsche (Groening) > > > > _______________________________________________ > Mono-list maillist - [EMAIL PROTECTED] > http://lists.ximian.com/mailman/listinfo/mono-list > _______________________________________________ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
