المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Best approach to use try catch finally



C# Programming
07-06-2009, 11:12 AM
Hi, I created a class library and wrote a function with the try {} catch { throw ;} finally {} manner. However I am not doing anything in the catch block, only throwing the exception. I am handling the exception the UI layer which is using that class library. I want to know the best approach to write the try block. If I use only try {} finally {} without catch block, does it good ?http://www.barakasoft.com/script/Forums/Images/smiley_confused.gif

Pankaj