Raj,
Personally, I use try/finally when I know I have to clean up some things
in the face of anything. I only catch exceptions at the application
boundary, or when there is an exception that I would logically ^expect^ and
want to know if it happend. However, if I expect that it could happen, I
would argue that you should check for the state that the exception
represents beforehand (for example, instead of opening a file stream and
catching FileNotFoundException, check for the existence of the file first).
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Raj Chudasama" <raj@asteriasgi_spamkiller.com> wrote in message
news:uW*************@TK2MSFTNGP10.phx.gbl...
what is the extent to which you should use them? Shall i include them in
almost all methods ? pleaes direct me to where i can find some more
information
thanks