Try Catch Finally In C#

Posted in C#Tagged , ,

Try Catch Finally is the  building block of exception handling in c#. ‘Try’ block keeps the code which may through exception at runtime. The ‘catch’ block handle the exception if try block rais error and ‘finally’ block executes always exception is raised or not. A try block may have multiple catch blocks. Example: using System; using System.Collections.Generic;….