Finally Runs Even If Method Returns

using (DisTest o = new DisTest())
{
        return;
}

OR

Dim o As DisTest = New DisTest
Try            
        Return        
Finally
         o.Dispose()
End Try
Avatar
Shital Shah

A program trying to understand what it’s computing.

comments powered by Disqus