FairyBusiness
asked on
What is the difference between if/else and try/finally in C#?
Hi, I am very familiar with the if/else statements but less familiar with the try/finally statements. I am wondering when I should use one versus the other? What is the difference exactly?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://msdn.microsoft.com/en-us/library/dszsf989%28v=vs.71%29.aspx
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
you might knowing one of the following language, are you?
c,c++,java,sql,vb?
there is no difference in c# also .
try catch and if else usage are same for all languages..
regards..
c,c++,java,sql,vb?
there is no difference in c# also .
try catch and if else usage are same for all languages..
regards..
C does not have try/catch.
ASKER
the languages I know are as follows: html, css, javascript, php, and sql. The try/catch/finally may be in other languages as well but I never used it before, and decided I might try to now.
thanks for the input guys!
thanks for the input guys!